diff --git a/common/src/main/java/owmii/powah/client/screen/container/FurnatorScreen.java b/common/src/main/java/owmii/powah/client/screen/container/FurnatorScreen.java index 666b10c5..299e6d49 100644 --- a/common/src/main/java/owmii/powah/client/screen/container/FurnatorScreen.java +++ b/common/src/main/java/owmii/powah/client/screen/container/FurnatorScreen.java @@ -57,10 +57,10 @@ protected void renderTooltip(GuiGraphics gui, int mouseX, int mouseY) { .translatable("info.lollipop.fe.stored", Util.addCommas(energy.getStored()), Util.numFormat(energy.getCapacity())) .withStyle(ChatFormatting.DARK_GRAY))); list.add(Component.translatable("info.lollipop.generates").withStyle(ChatFormatting.GRAY).append(Text.COLON) - .append(Component.literal(Util.numFormat(this.te.getGeneration())).append(Component.translatable("info.lollipop.fe.pet.tick")) + .append(Component.translatable("info.lollipop.fe.pet.tick", Util.numFormat(this.te.getGeneration())) .withStyle(ChatFormatting.DARK_GRAY))); list.add(Component.translatable("info.lollipop.max.extract").withStyle(ChatFormatting.GRAY).append(Text.COLON) - .append(Component.literal(Util.numFormat(energy.getMaxExtract())).append(Component.translatable("info.lollipop.fe.pet.tick")) + .append(Component.translatable("info.lollipop.fe.pet.tick", Util.numFormat(energy.getMaxExtract())) .withStyle(ChatFormatting.DARK_GRAY))); gui.renderComponentTooltip(font, list, mouseX, mouseY); } diff --git a/common/src/main/java/owmii/powah/client/screen/container/MagmatorScreen.java b/common/src/main/java/owmii/powah/client/screen/container/MagmatorScreen.java index 52329508..1c36a988 100644 --- a/common/src/main/java/owmii/powah/client/screen/container/MagmatorScreen.java +++ b/common/src/main/java/owmii/powah/client/screen/container/MagmatorScreen.java @@ -76,10 +76,10 @@ protected void renderTooltip(GuiGraphics gui, int mouseX, int mouseY) { .translatable("info.lollipop.fe.stored", Util.addCommas(energy.getStored()), Util.numFormat(energy.getCapacity())) .withStyle(ChatFormatting.DARK_GRAY))); list.add(Component.translatable("info.lollipop.generates").withStyle(ChatFormatting.GRAY).append(Text.COLON) - .append(Component.literal(Util.numFormat(this.te.getGeneration())).append(Component.translatable("info.lollipop.fe.pet.tick")) + .append(Component.translatable("info.lollipop.fe.pet.tick", Util.numFormat(this.te.getGeneration())) .withStyle(ChatFormatting.DARK_GRAY))); list.add(Component.translatable("info.lollipop.max.extract").withStyle(ChatFormatting.GRAY).append(Text.COLON) - .append(Component.literal(Util.numFormat(energy.getMaxExtract())).append(Component.translatable("info.lollipop.fe.pet.tick")) + .append(Component.translatable("info.lollipop.fe.pet.tick", Util.numFormat(energy.getMaxExtract())) .withStyle(ChatFormatting.DARK_GRAY))); gui.renderComponentTooltip(font, list, mouseX, mouseY); } diff --git a/common/src/main/java/owmii/powah/client/screen/container/ReactorScreen.java b/common/src/main/java/owmii/powah/client/screen/container/ReactorScreen.java index c5ac6699..63b6f969 100644 --- a/common/src/main/java/owmii/powah/client/screen/container/ReactorScreen.java +++ b/common/src/main/java/owmii/powah/client/screen/container/ReactorScreen.java @@ -92,13 +92,13 @@ protected void renderTooltip(GuiGraphics gui, int mouseX, int mouseY) { .translatable("info.lollipop.fe.stored", Util.addCommas(energy.getStored()), Util.numFormat(energy.getCapacity())) .withStyle(ChatFormatting.DARK_GRAY))); list.add(Component.translatable("info.powah.generation.factor").withStyle(ChatFormatting.GRAY).append(Text.COLON) - .append(Component.literal(Util.numFormat(this.te.getGeneration())).append(Component.translatable("info.lollipop.fe.pet.tick")) + .append(Component.translatable("info.lollipop.fe.pet.tick", Util.numFormat(this.te.getGeneration())) .withStyle(ChatFormatting.DARK_GRAY))); list.add(Component.translatable("info.lollipop.generating").withStyle(ChatFormatting.GRAY).append(Text.COLON) - .append(Component.literal(Util.numFormat((long) this.te.calcProduction())) - .append(Component.translatable("info.lollipop.fe.pet.tick")).withStyle(ChatFormatting.DARK_GRAY))); + .append(Component.translatable("info.lollipop.fe.pet.tick", Util.numFormat((long) this.te.calcProduction())) + .withStyle(ChatFormatting.DARK_GRAY))); list.add(Component.translatable("info.lollipop.max.extract").withStyle(ChatFormatting.GRAY).append(Text.COLON) - .append(Component.literal(Util.numFormat(energy.getMaxExtract())).append(Component.translatable("info.lollipop.fe.pet.tick")) + .append(Component.translatable("info.lollipop.fe.pet.tick", Util.numFormat(energy.getMaxExtract())) .withStyle(ChatFormatting.DARK_GRAY))); gui.renderComponentTooltip(font, list, mouseX, mouseY); @@ -117,8 +117,9 @@ protected void renderTooltip(GuiGraphics gui, int mouseX, int mouseY) { .append(Component.translatable("info.lollipop.mb.stored", String.format("%.0f", this.te.fuel.getTicks()), String.format("%.0f", this.te.fuel.getMax())).withStyle(ChatFormatting.DARK_GRAY))); list.add(Component.translatable("info.lollipop.using").withStyle(ChatFormatting.GRAY).append(Text.COLON) - .append(Component.literal(ChatFormatting.GREEN + String.format("%.4f", this.te.calcConsumption())) - .append(Component.translatable("info.lollipop.mb.pet.tick")).withStyle(ChatFormatting.DARK_GRAY))); + .append(Component + .translatable("info.lollipop.mb.pet.tick", ChatFormatting.GREEN + String.format("%.4f", this.te.calcConsumption())) + .withStyle(ChatFormatting.DARK_GRAY))); gui.renderComponentTooltip(font, list, mouseX, mouseY); } diff --git a/common/src/main/java/owmii/powah/client/screen/container/ThermoScreen.java b/common/src/main/java/owmii/powah/client/screen/container/ThermoScreen.java index 75077a21..fc9577e3 100644 --- a/common/src/main/java/owmii/powah/client/screen/container/ThermoScreen.java +++ b/common/src/main/java/owmii/powah/client/screen/container/ThermoScreen.java @@ -60,10 +60,10 @@ protected void renderTooltip(GuiGraphics gui, int mouseX, int mouseY) { .translatable("info.lollipop.fe.stored", Util.addCommas(energy.getStored()), Util.numFormat(energy.getCapacity())) .withStyle(ChatFormatting.DARK_GRAY))); list.add(Component.translatable("info.lollipop.generates").withStyle(ChatFormatting.GRAY).append(Text.COLON) - .append(Component.literal(Util.numFormat(this.te.getGeneration())).append(Component.translatable("info.lollipop.fe.pet.tick")) + .append(Component.translatable("info.lollipop.fe.pet.tick", Util.numFormat(this.te.getGeneration())) .withStyle(ChatFormatting.DARK_GRAY))); list.add(Component.translatable("info.lollipop.max.extract").withStyle(ChatFormatting.GRAY).append(Text.COLON) - .append(Component.literal(Util.numFormat(energy.getMaxExtract())).append(Component.translatable("info.lollipop.fe.pet.tick")) + .append(Component.translatable("info.lollipop.fe.pet.tick", Util.numFormat(energy.getMaxExtract())) .withStyle(ChatFormatting.DARK_GRAY))); gui.renderComponentTooltip(font, list, mouseX, mouseY); }