diff --git a/forge/src/main/java/ziyue/tjmetro/forge/MainForge.java b/forge/src/main/java/ziyue/tjmetro/forge/MainForge.java index ea5c196..0aee1ac 100644 --- a/forge/src/main/java/ziyue/tjmetro/forge/MainForge.java +++ b/forge/src/main/java/ziyue/tjmetro/forge/MainForge.java @@ -27,15 +27,17 @@ public MainForge() { DistExecutor.unsafeRunWhenOn(Dist.CLIENT, () -> TianjinMetroClient::init); MinecraftForge.EVENT_BUS.register(this); + DistExecutor.unsafeRunWhenOn(Dist.CLIENT, () ->{ #if MC_VERSION <= "11605" - ModLoadingContext.get().registerExtensionPoint(net.minecraftforge.fml.ExtensionPoint.CONFIGGUIFACTORY, () -> (client, parent) -> new ConfigClientScreen(new Screen(parent))); + ModLoadingContext.get().registerExtensionPoint(net.minecraftforge.fml.ExtensionPoint.CONFIGGUIFACTORY, () -> (client, parent) -> new ConfigClientScreen(new Screen(parent))); #elif MC_VERSION <= "11701" - ModLoadingContext.get().registerExtensionPoint(net.minecraftforge.fmlclient.ConfigGuiHandler.ConfigGuiFactory.class, () -> new net.minecraftforge.fmlclient.ConfigGuiHandler.ConfigGuiFactory((client, parent) -> new ConfigClientScreen(new Screen(parent)))); + ModLoadingContext.get().registerExtensionPoint(net.minecraftforge.fmlclient.ConfigGuiHandler.ConfigGuiFactory.class, () -> new net.minecraftforge.fmlclient.ConfigGuiHandler.ConfigGuiFactory((client, parent) -> new ConfigClientScreen(new Screen(parent)))); #elif MC_VERSION <= "11802" - ModLoadingContext.get().registerExtensionPoint(net.minecraftforge.client.ConfigGuiHandler.ConfigGuiFactory.class, () -> new net.minecraftforge.client.ConfigGuiHandler.ConfigGuiFactory((client, parent) -> new ConfigClientScreen(new Screen(parent)))); + ModLoadingContext.get().registerExtensionPoint(net.minecraftforge.client.ConfigGuiHandler.ConfigGuiFactory.class, () -> new net.minecraftforge.client.ConfigGuiHandler.ConfigGuiFactory((client, parent) -> new ConfigClientScreen(new Screen(parent)))); #elif MC_VERSION <= "12004" - ModLoadingContext.get().registerExtensionPoint(net.minecraftforge.client.ConfigScreenHandler.ConfigScreenFactory.class, () -> new net.minecraftforge.client.ConfigScreenHandler.ConfigScreenFactory((client, parent) -> new ConfigClientScreen(new Screen(parent)))); + ModLoadingContext.get().registerExtensionPoint(net.minecraftforge.client.ConfigScreenHandler.ConfigScreenFactory.class, () -> new net.minecraftforge.client.ConfigScreenHandler.ConfigScreenFactory((client, parent) -> new ConfigClientScreen(new Screen(parent)))); #endif + }); } @SubscribeEvent diff --git a/gradle.properties b/gradle.properties index b48002b..eca796b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx4G org.gradle.parallel=true org.gradle.daemon=false -minecraft_version=1.20.4 +minecraft_version=1.20.1 # Mod Properties mod_version=1.0.0-beta-2-hotfix-2 diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index cdd2fdc..7cfe75d 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https://mirrors.cloud.tencent.com/gradle/gradle-8.10-bin.zip +distributionUrl=https://mirrors.cloud.tencent.com/gradle/gradle-8.11-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME