diff --git a/gradle.properties b/gradle.properties index 4707acf..2f3d1ef 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,12 +4,12 @@ org.gradle.parallel=true # Fabric Properties # check these on https://fabricmc.net/develop -minecraft_version=1.19.4 -yarn_mappings=1.19.4+build.2 +minecraft_version=1.20.1 +yarn_mappings=1.20.1+build.10 loader_version=0.15.3 #Fabric api -fabric_version=0.87.2+1.19.4 +fabric_version=0.91.0+1.20.1 # Mod Properties mod_version=1.1.0 diff --git a/src/main/java/tk/estecka/packrulemenus/GenericWarningScreen.java b/src/main/java/tk/estecka/packrulemenus/GenericWarningScreen.java index c135c7f..a92cc20 100644 --- a/src/main/java/tk/estecka/packrulemenus/GenericWarningScreen.java +++ b/src/main/java/tk/estecka/packrulemenus/GenericWarningScreen.java @@ -1,9 +1,9 @@ package tk.estecka.packrulemenus; import it.unimi.dsi.fastutil.booleans.BooleanConsumer; +import net.minecraft.client.gui.DrawContext; import net.minecraft.client.gui.screen.WarningScreen; import net.minecraft.client.gui.widget.ButtonWidget; -import net.minecraft.client.util.math.MatrixStack; import net.minecraft.screen.ScreenTexts; import net.minecraft.text.Text; @@ -45,9 +45,9 @@ protected void initButtons(int yOffset){ } @Override - public void render(MatrixStack matrices, int mouseX, int mouseY, float delta){ + public void render(DrawContext context, int mouseX, int mouseY, float delta){ this.proceedButton.active = this.checkbox.isChecked(); - super.render(matrices, mouseX, mouseY, delta); + super.render(context, mouseX, mouseY, delta); } private void OnAccept(ButtonWidget __){ diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index f9cf2b4..44cbdcb 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -20,11 +20,10 @@ "packrule-menus.mixins.json" ], "depends": { - "minecraft": "<1.20.0", + "minecraft": "^1.20.0", "fabricloader": ">=0.15.3", "java": ">=17" }, "suggests": { - "minecraft": "^1.19.4" } }