From 61abfc3dc0c963d4397600a15ab04a4498ca4667 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Fri, 9 Apr 2021 15:22:24 +0200 Subject: [PATCH] Only use the initSetup method on clients. --- .../src/main/kotlin/fr/username404/snowygui/forge/forgeInit.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forge/src/main/kotlin/fr/username404/snowygui/forge/forgeInit.kt b/forge/src/main/kotlin/fr/username404/snowygui/forge/forgeInit.kt index f39f206..c3e8181 100644 --- a/forge/src/main/kotlin/fr/username404/snowygui/forge/forgeInit.kt +++ b/forge/src/main/kotlin/fr/username404/snowygui/forge/forgeInit.kt @@ -13,7 +13,7 @@ import java.util.function.Supplier @Mod("snowygui") class ForgeInit: Snowy() { - private fun initSetup(event: FMLCommonSetupEvent) = atInit() + private fun initSetup(event: FMLClientSetupEvent) = atInit() private fun configSetup(event: FMLClientSetupEvent) { ModLoadingContext.get().registerExtensionPoint( ExtensionPoint.CONFIGGUIFACTORY,