Fix Text#toString use on the crafting screens.

This commit is contained in:
Sebastian Hartte
2020-08-16 14:06:05 +02:00
parent 506c516384
commit 2787796cd3
2 changed files with 6 additions and 6 deletions
@@ -227,7 +227,7 @@ public class CraftConfirmScreen extends AEBaseScreen<CraftConfirmContainer> {
str = Long.toString(stored.getStackSize() / 1000000) + 'm';
}
str = GuiText.FromStorage.text() + ": " + str;
str = GuiText.FromStorage.getLocal() + ": " + str;
final int w = 4 + this.textRenderer.getWidth(str);
this.textRenderer.draw(matrices, str,
(int) ((x * (1 + sectionLength) + xo + sectionLength - 19 - (w * 0.5)) * 2),
@@ -250,7 +250,7 @@ public class CraftConfirmScreen extends AEBaseScreen<CraftConfirmContainer> {
str = Long.toString(missingStack.getStackSize() / 1000000) + 'm';
}
str = GuiText.Missing.text() + ": " + str;
str = GuiText.Missing.getLocal() + ": " + str;
final int w = 4 + this.textRenderer.getWidth(str);
this.textRenderer.draw(matrices, str,
(int) ((x * (1 + sectionLength) + xo + sectionLength - 19 - (w * 0.5)) * 2),
@@ -273,7 +273,7 @@ public class CraftConfirmScreen extends AEBaseScreen<CraftConfirmContainer> {
str = Long.toString(pendingStack.getStackSize() / 1000000) + 'm';
}
str = GuiText.ToCraft.text() + ": " + str;
str = GuiText.ToCraft.getLocal() + ": " + str;
final int w = 4 + this.textRenderer.getWidth(str);
this.textRenderer.draw(matrices, str,
(int) ((x * (1 + sectionLength) + xo + sectionLength - 19 - (w * 0.5)) * 2),
@@ -224,7 +224,7 @@ public class CraftingCPUScreen<T extends CraftingCPUContainer> extends AEBaseScr
int downY = 0;
if (stored != null && stored.getStackSize() > 0) {
final String str = GuiText.Stored.text() + ": "
final String str = GuiText.Stored.getLocal() + ": "
+ converter.toWideReadableForm(stored.getStackSize());
final int w = 4 + this.textRenderer.getWidth(str);
this.textRenderer.draw(matrices, str,
@@ -240,7 +240,7 @@ public class CraftingCPUScreen<T extends CraftingCPUContainer> extends AEBaseScr
}
if (activeStack != null && activeStack.getStackSize() > 0) {
final String str = GuiText.Crafting.text() + ": "
final String str = GuiText.Crafting.getLocal() + ": "
+ converter.toWideReadableForm(activeStack.getStackSize());
final int w = 4 + this.textRenderer.getWidth(str);
@@ -257,7 +257,7 @@ public class CraftingCPUScreen<T extends CraftingCPUContainer> extends AEBaseScr
}
if (pendingStack != null && pendingStack.getStackSize() > 0) {
final String str = GuiText.Scheduled.text() + ": "
final String str = GuiText.Scheduled.getLocal() + ": "
+ converter.toWideReadableForm(pendingStack.getStackSize());
final int w = 4 + this.textRenderer.getWidth(str);