Skip to content

Commit

Permalink
Fix incompatibility with vanilla Minecraft
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryhon0 committed Jun 5, 2024
1 parent 837d1d3 commit 43430ed
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=2.2.0
mod_version=2.2.1
maven_group=xyz.ryhon.replanterplus
archives_base_name=replanter-plus

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/xyz/ryhon/replanterplus/ConfigScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,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("replanter.switchbutton.label." + (toggled ? "on" : "off")),
getX() + (width / 2), getY() + (height / 2) - (textRenderer.fontHeight / 2),
Expand Down

0 comments on commit 43430ed

Please sign in to comment.