diff --git a/build.gradle b/build.gradle index 10b94ea..260ff7a 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ plugins { - id 'fabric-loom' version '0.2.7-SNAPSHOT' + id 'fabric-loom' version '0.4-SNAPSHOT' id 'maven-publish' } diff --git a/gradle.properties b/gradle.properties index 1d491aa..0a97b5d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,15 +1,15 @@ org.gradle.jvmargs = -Xmx1G #Fabric properties -minecraft_version = 1.15.2 -yarn_mappings = 1.15.2+build.15 -loader_version = 0.8.2+build.194 +minecraft_version=1.16-rc1 +yarn_mappings=1.16-rc1+build.4 +loader_version=0.8.8+build.202 #Mod properties -mod_version = 1.0.0 +mod_version = 1.0.1 maven_group = mod.linguardium.dontpushme archives_base_name = dontpushme -autoconfig_version = 2.0.1 -clothconfig_version = 2.13.4 -modmenu_version = 1.10.2+build.32 \ No newline at end of file +autoconfig_version = 3.2.0-unstable +clothconfig_version = 4.5.5 +modmenu_version = 1.12.1+build.15 \ No newline at end of file diff --git a/src/main/java/mod/linguardium/dontpushme/ModMenuMenu.java b/src/main/java/mod/linguardium/dontpushme/ModMenuMenu.java index d7ad791..11b16a6 100644 --- a/src/main/java/mod/linguardium/dontpushme/ModMenuMenu.java +++ b/src/main/java/mod/linguardium/dontpushme/ModMenuMenu.java @@ -1,12 +1,12 @@ package mod.linguardium.dontpushme; +import io.github.prospector.modmenu.api.ConfigScreenFactory; import io.github.prospector.modmenu.api.ModMenuApi; import me.sargunvohra.mcmods.autoconfig1u.AutoConfig; -import net.minecraft.client.gui.screen.Screen; - -import java.util.Optional; -import java.util.function.Supplier; +import net.fabricmc.api.EnvType; +import net.fabricmc.api.Environment; +@Environment(EnvType.CLIENT) public class ModMenuMenu implements ModMenuApi { @Override public String getModId() { @@ -14,7 +14,8 @@ public String getModId() { } @Override - public Optional> getConfigScreen(Screen screen) { - return Optional.of(AutoConfig.getConfigScreen(ModConfig.class, screen)); + public ConfigScreenFactory getModConfigScreenFactory() { + return screen -> AutoConfig.getConfigScreen(ModConfig.class, screen).get(); } + }