aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/impl/widgets/ButtonWidget.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/shedaniel/rei/impl/widgets/ButtonWidget.java')
-rw-r--r--src/main/java/me/shedaniel/rei/impl/widgets/ButtonWidget.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/me/shedaniel/rei/impl/widgets/ButtonWidget.java b/src/main/java/me/shedaniel/rei/impl/widgets/ButtonWidget.java
index fb9e44635..6eb50ec29 100644
--- a/src/main/java/me/shedaniel/rei/impl/widgets/ButtonWidget.java
+++ b/src/main/java/me/shedaniel/rei/impl/widgets/ButtonWidget.java
@@ -211,7 +211,7 @@ public class ButtonWidget extends Button {
if (tint != null)
fillGradient(matrices, x + 1, y + 1, x + width - 1, y + height - 1, tint, tint);
- this.method_27534(matrices, font, getText(), x + width / 2, y + (height - 8) / 2, color);
+ this.drawCenteredText(matrices, font, getText(), x + width / 2, y + (height - 8) / 2, color);
String tooltip = getTooltip();
if (tooltip != null)