diff options
| author | shedaniel <daniel@shedaniel.me> | 2020-05-07 09:18:13 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2020-05-07 09:18:13 +0800 |
| commit | 9662f0e452a0e1ac23de3f39861d15db7db5b1cc (patch) | |
| tree | d59aa0d5b9f4e2ee45dbaa52e10e6ba0415ef722 /src/main/java/me/shedaniel/rei/impl/widgets/ButtonWidget.java | |
| parent | 6c1df6bddb1ff6537e9490ba828f35d40ff5903a (diff) | |
| download | RoughlyEnoughItems-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.java | 2 |
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) |
