Skip to content

Commit a2d680a

Browse files
committed
Change for probably fix crashing while server starting.
Signed-off-by: Pavel Erokhin (MairwunNx) <MairwunNx@gmail.com>
1 parent a994d30 commit a2d680a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/main/kotlin/com/mairwunnx/projectessentials/warps

src/main/kotlin/com/mairwunnx/projectessentials/warps/EntryPoint.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class EntryPoint : EssBase() {
4848

4949
@SubscribeEvent
5050
fun onServerStarting(event: FMLServerStartingEvent) {
51-
registerCommands(event.server.commandManager.dispatcher)
51+
registerCommands(event.commandDispatcher)
5252
}
5353

5454
private fun registerCommands(

0 commit comments

Comments
 (0)