diff --git a/build-neoforge.gradle b/build-neoforge.gradle index b2f2c95..5562162 100644 --- a/build-neoforge.gradle +++ b/build-neoforge.gradle @@ -3,7 +3,7 @@ plugins { id 'eclipse' id 'idea' id 'maven-publish' - id 'net.neoforged.gradle.userdev' version '7.0.142' + id 'net.neoforged.gradle.userdev' version '7.0.145' } version = project.modVersion diff --git a/gradle.properties b/gradle.properties index dd198c4..e93aeb4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -15,7 +15,7 @@ forgeVersion=51.0.8 forgeLoaderVersion=[51,) neoMcVersion=1.21 -neoVersion=21.0.0-beta +neoVersion=21.0.167 neoLoaderVersion=[4,) fabricMcVersion=1.21 diff --git a/src/main/java/yalter/mousetweaks/neoforge/ClientHelper.java b/src/main/java/yalter/mousetweaks/neoforge/ClientHelper.java index 40eed6f..3858a65 100644 --- a/src/main/java/yalter/mousetweaks/neoforge/ClientHelper.java +++ b/src/main/java/yalter/mousetweaks/neoforge/ClientHelper.java @@ -1,7 +1,7 @@ package yalter.mousetweaks.neoforge; -import net.minecraft.client.Minecraft; import net.minecraft.client.gui.screens.Screen; +import net.neoforged.fml.ModContainer; import net.neoforged.neoforge.client.gui.IConfigScreenFactory; import yalter.mousetweaks.ConfigScreen; @@ -11,7 +11,7 @@ */ public class ClientHelper implements IConfigScreenFactory { @Override - public Screen createScreen(Minecraft minecraft, Screen screen) { - return new ConfigScreen(screen); + public Screen createScreen(ModContainer container, Screen modListScreen) { + return new ConfigScreen(modListScreen); } }