From 2d818471072c9a572b0479305958c611e847ca62 Mon Sep 17 00:00:00 2001 From: Apehum Date: Tue, 24 Sep 2024 09:14:30 +0800 Subject: [PATCH] fix(mod): use SERVER_STARTED event instead of SERVER_STARTING --- .../src/main/kotlin/su/plo/slib/mod/event/ModServerEvents.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/versions/src/main/kotlin/su/plo/slib/mod/event/ModServerEvents.kt b/versions/src/main/kotlin/su/plo/slib/mod/event/ModServerEvents.kt index cd6a54c..a8c1a12 100644 --- a/versions/src/main/kotlin/su/plo/slib/mod/event/ModServerEvents.kt +++ b/versions/src/main/kotlin/su/plo/slib/mod/event/ModServerEvents.kt @@ -1,6 +1,5 @@ package su.plo.slib.mod.event -import com.google.common.cache.CacheBuilder import com.mojang.brigadier.CommandDispatcher import net.minecraft.commands.CommandSourceStack import net.minecraft.server.MinecraftServer @@ -57,7 +56,7 @@ class ModServerEvents private constructor() { //#if FABRIC init { - ServerLifecycleEvents.SERVER_STARTING.register { fireServerStarted(it) } + ServerLifecycleEvents.SERVER_STARTED.register { fireServerStarted(it) } ServerLifecycleEvents.SERVER_STOPPING.register { fireServerStopping(it) } ServerPlayConnectionEvents.JOIN.register { handler, _, _ -> firePlayerJoin(handler.player) }