Skip to content

Commit

Permalink
fix(mod): use SERVER_STARTED event instead of SERVER_STARTING
Browse files Browse the repository at this point in the history
  • Loading branch information
Apehum committed Sep 24, 2024
1 parent 235a0cd commit 2d81847
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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) }
Expand Down

0 comments on commit 2d81847

Please sign in to comment.