Updated stuff

This commit is contained in:
coolGi2007
2021-12-23 05:42:51 +00:00
parent fbf418e31d
commit fff510f315
14 changed files with 99 additions and 1109 deletions
@@ -64,6 +64,7 @@ public class ForgeMain implements LodForgeMethodCaller
private void init(final FMLCommonSetupEvent event)
{
// make sure the dependencies are set up before the mod needs them
LodCommonMain.initConfig();
LodCommonMain.startup(this, !FMLLoader.getDist().isClient());
ForgeDependencySetup.createInitialBindings();
}
@@ -83,7 +84,6 @@ public class ForgeMain implements LodForgeMethodCaller
{
ModLoadingContext.get().registerExtensionPoint(ConfigGuiHandler.ConfigGuiFactory.class,
() -> new ConfigGuiHandler.ConfigGuiFactory((client, parent) -> Config.getScreen(parent, ModInfo.ID, "")));
LodCommonMain.initConfig();
forgeClientProxy = new ForgeClientProxy();
MinecraftForge.EVENT_BUS.register(forgeClientProxy);
}
@@ -0,0 +1,13 @@
package com.seibel.lod.forge.wrappers.config;
import com.seibel.lod.common.Config;
import com.seibel.lod.core.ModInfo;
import net.minecraftforge.fml.ModLoadingContext;
import net.minecraftforge.fmlclient.ConfigGuiHandler;
public class MenuIntegration {
public static void registerModsPage() {
ModLoadingContext.get().registerExtensionPoint(ConfigGuiHandler.ConfigGuiFactory.class,
() -> new ConfigGuiHandler.ConfigGuiFactory((client, parent) -> Config.getScreen(parent, ModInfo.ID, "")));
}
}
+2 -1
View File
@@ -3,9 +3,10 @@
"package": "com.seibel.lod.forge.mixins",
"compatibilityLevel": "JAVA_16",
"refmap": "lod.refmap.json",
"mixins": [
"client": [
"MixinWorldRenderer",
"MixinOptionsScreen"
],
"mixins": [],
"minVersion": "0.8"
}