diff options
| author | shedaniel <daniel@shedaniel.me> | 2020-04-30 01:08:07 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2020-04-30 02:27:38 +0800 |
| commit | be7b641955a197d55251c3cbd4a314476cf94fb3 (patch) | |
| tree | 1747230438e2daa7d8debd2f661a69ba11f4ea23 /src/main/java/me/shedaniel/rei/gui/widget/ClickableLabelWidget.java | |
| parent | 43614d50fe2d965246b8ee4522f0ece646031ae9 (diff) | |
| download | RoughlyEnoughItems-be7b641955a197d55251c3cbd4a314476cf94fb3.tar.gz RoughlyEnoughItems-be7b641955a197d55251c3cbd4a314476cf94fb3.tar.bz2 RoughlyEnoughItems-be7b641955a197d55251c3cbd4a314476cf94fb3.zip | |
Update to 20w18a and add recipe exporter
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/widget/ClickableLabelWidget.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/gui/widget/ClickableLabelWidget.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/widget/ClickableLabelWidget.java b/src/main/java/me/shedaniel/rei/gui/widget/ClickableLabelWidget.java index b161b62e9..2c107db03 100644 --- a/src/main/java/me/shedaniel/rei/gui/widget/ClickableLabelWidget.java +++ b/src/main/java/me/shedaniel/rei/gui/widget/ClickableLabelWidget.java @@ -73,17 +73,17 @@ public abstract class ClickableLabelWidget extends LabelWidget { if (isClickable() && isHovered(mouseX, mouseY)) color = getHoveredColor(); Point pos = getLocation(); - int width = font.getStringWidth(getText()); + int width = font.getWidth(getText()); if (isCentered()) { if (isHasShadows()) - font.method_27517(matrices, text, pos.x - width / 2f, pos.y, color); + font.drawWithShadow(matrices, text, pos.x - width / 2f, pos.y, color); else - font.method_27528(matrices, text, pos.x - width / 2f, pos.y, color); + font.draw(matrices, text, pos.x - width / 2f, pos.y, color); } else { if (isHasShadows()) - font.method_27517(matrices, text, pos.x, pos.y, color); + font.drawWithShadow(matrices, text, pos.x, pos.y, color); else - font.method_27528(matrices, text, pos.x, pos.y, color); + font.draw(matrices, text, pos.x, pos.y, color); } drawTooltips(mouseX, mouseY); } |
