Skip to content

Commit

Permalink
Fix incompatibility with vanilla Minecraft
Browse files Browse the repository at this point in the history
Fixes #1
  • Loading branch information
Ryhon0 committed Jun 5, 2024
1 parent 966852d commit ee4d611
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ yarn_mappings=1.20.2+build.4
loader_version=0.15.11

# Mod Properties
mod_version=1.0.1
mod_version=1.0.2
maven_group=xyz.ryhon.simpleautoswitch
archives_base_name=simple-autoswitch

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ protected boolean clicked(double mouseX, double mouseY) {
}

@Override
public void render(DrawContext context, int mouseX, int mouseY, float delta) {
super.render(context, mouseX, mouseY, delta);
public void renderButton(DrawContext context, int mouseX, int mouseY, float delta) {
super.renderButton(context, mouseX, mouseY, delta);
context.drawCenteredTextWithShadow(textRenderer,
Text.translatable("simpleautoswitch.switchbutton.label." + (toggled ? "on" : "off")),
getX() + (width / 2), getY() + (height / 2) - (textRenderer.fontHeight / 2),
Expand Down

0 comments on commit ee4d611

Please sign in to comment.