From 178b6e63674e3fca0b8b74b0e11ab1dd917a8c25 Mon Sep 17 00:00:00 2001 From: nea Date: Mon, 31 Jul 2023 19:08:46 +0200 Subject: Remove partial architectury dependency --- src/main/kotlin/moe/nea/firmament/Firmament.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main') diff --git a/src/main/kotlin/moe/nea/firmament/Firmament.kt b/src/main/kotlin/moe/nea/firmament/Firmament.kt index c3bb0fc..741fabd 100644 --- a/src/main/kotlin/moe/nea/firmament/Firmament.kt +++ b/src/main/kotlin/moe/nea/firmament/Firmament.kt @@ -19,7 +19,6 @@ package moe.nea.firmament import com.mojang.brigadier.CommandDispatcher -import dev.architectury.event.events.client.ClientTickEvent import io.ktor.client.* import io.ktor.client.plugins.* import io.ktor.client.plugins.cache.* @@ -33,6 +32,7 @@ import java.nio.file.Path import net.fabricmc.fabric.api.client.command.v2.ClientCommandRegistrationCallback import net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientLifecycleEvents +import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents import net.fabricmc.fabric.api.client.screen.v1.ScreenEvents import net.fabricmc.loader.api.FabricLoader import net.fabricmc.loader.api.Version @@ -130,7 +130,7 @@ object Firmament { // :( } var tick = 0 - ClientTickEvent.CLIENT_POST.register(ClientTickEvent.Client { instance -> + ClientTickEvents.END_CLIENT_TICK.register(ClientTickEvents.EndTick { instance -> TickEvent.publish(TickEvent(tick++)) }) IDataHolder.registerEvents() -- cgit