From be7b641955a197d55251c3cbd4a314476cf94fb3 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Thu, 30 Apr 2020 01:08:07 +0800 Subject: Update to 20w18a and add recipe exporter Signed-off-by: shedaniel --- src/main/java/me/shedaniel/rei/gui/widget/LabelWidget.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/main/java/me/shedaniel/rei/gui/widget/LabelWidget.java') diff --git a/src/main/java/me/shedaniel/rei/gui/widget/LabelWidget.java b/src/main/java/me/shedaniel/rei/gui/widget/LabelWidget.java index 160604728..6e69a5f69 100644 --- a/src/main/java/me/shedaniel/rei/gui/widget/LabelWidget.java +++ b/src/main/java/me/shedaniel/rei/gui/widget/LabelWidget.java @@ -157,7 +157,7 @@ public class LabelWidget extends WidgetWithBounds { @NotNull @Override public Rectangle getBounds() { - int width = font.method_27525(text); + int width = font.getWidth(text); Point pos = getLocation(); if (isCentered()) return new Rectangle(pos.x - width / 2 - 1, pos.y - 5, width + 2, 14); @@ -171,18 +171,18 @@ public class LabelWidget extends WidgetWithBounds { @Override public void render(MatrixStack matrices, int mouseX, int mouseY, float delta) { - int width = font.method_27525(text); + int width = font.getWidth(text); Point pos = getLocation(); if (isCentered()) { if (hasShadows) - font.method_27517(matrices, text, pos.x - width / 2f, pos.y, defaultColor); + font.drawWithShadow(matrices, text, pos.x - width / 2f, pos.y, defaultColor); else - font.method_27528(matrices, text, pos.x - width / 2f, pos.y, defaultColor); + font.draw(matrices, text, pos.x - width / 2f, pos.y, defaultColor); } else { if (hasShadows) - font.method_27517(matrices, text, pos.x, pos.y, defaultColor); + font.drawWithShadow(matrices, text, pos.x, pos.y, defaultColor); else - font.method_27528(matrices, text, pos.x, pos.y, defaultColor); + font.draw(matrices, text, pos.x, pos.y, defaultColor); } } -- cgit