aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/impl/widgets/ButtonWidget.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-05-07 09:18:13 +0800
committershedaniel <daniel@shedaniel.me>2020-05-07 09:18:13 +0800
commit9662f0e452a0e1ac23de3f39861d15db7db5b1cc (patch)
treed59aa0d5b9f4e2ee45dbaa52e10e6ba0415ef722 /src/main/java/me/shedaniel/rei/impl/widgets/ButtonWidget.java
parent6c1df6bddb1ff6537e9490ba828f35d40ff5903a (diff)
downloadRoughlyEnoughItems-9662f0e452a0e1ac23de3f39861d15db7db5b1cc.tar.gz
RoughlyEnoughItems-9662f0e452a0e1ac23de3f39861d15db7db5b1cc.tar.bz2
RoughlyEnoughItems-9662f0e452a0e1ac23de3f39861d15db7db5b1cc.zip
Bump for 20w19a
Signed-off-by: shedaniel <daniel@shedaniel.me>
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)