Skip to content

Commit

Permalink
Updated to minecraft 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
Estecka committed Jan 1, 2024
1 parent 287c9d3 commit 15ad40d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand Down Expand Up @@ -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 __){
Expand Down
3 changes: 1 addition & 2 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 15ad40d

Please sign in to comment.