Center solderer progress text

This commit is contained in:
Raoul Van den Berge
2016-11-26 12:04:54 +01:00
parent f3d2d6675b
commit c3676f9741

View File

@@ -35,7 +35,9 @@ public class GuiSolderer extends GuiBase {
drawString(7, 77, t("container.inventory"));
if (TileSolderer.WORKING.getValue()) {
drawString(86, 59, getProgressScaled(100) + "%");
String t = getProgressScaled(100) + "%";
drawString(83 + (22 - fontRendererObj.getStringWidth(t)) / 2, 59, t);
}
}