Skip to content

Commit

Permalink
fix(mod): set MinecraftServer instance on SERVER_STARTING event
Browse files Browse the repository at this point in the history
  • Loading branch information
Apehum committed Oct 1, 2024
1 parent 839b0e8 commit 15bfe56
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ class ModServerEvents private constructor() {
//#if FABRIC

init {
ServerLifecycleEvents.SERVER_STARTING.register {
ModServerLib.minecraftServer = it
}
ServerLifecycleEvents.SERVER_STARTED.register { fireServerStarted(it) }
ServerLifecycleEvents.SERVER_STOPPING.register { fireServerStopping(it) }

Expand Down

0 comments on commit 15bfe56

Please sign in to comment.