From f6fc0e8024470d15bb34c81718fe797fe5ce7cbb Mon Sep 17 00:00:00 2001 From: Connor-Colenso <52056774+connor-colenso@users.noreply.github.com> Date: Wed, 18 Oct 2023 10:03:23 -0600 Subject: [PATCH] Fix Boldarnator tooltip. --- dependencies.gradle | 2 +- ...hMetaTileEntity_IndustrialRockBreaker.java | 19 +++++++++++++------ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/dependencies.gradle b/dependencies.gradle index c1bb95796..b2a9c26e5 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -1,5 +1,5 @@ dependencies { - api('com.github.GTNewHorizons:GT5-Unofficial:5.09.45.140:dev') + api('com.github.GTNewHorizons:GT5-Unofficial:5.09.45.144:dev') api("com.github.GTNewHorizons:bartworks:0.9.17:dev") implementation('curse.maven:cofh-core-69162:2388751') diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_IndustrialRockBreaker.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_IndustrialRockBreaker.java index 93c9ecc46..c676d3b5c 100644 --- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_IndustrialRockBreaker.java +++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_IndustrialRockBreaker.java @@ -13,6 +13,9 @@ import java.util.ArrayList; +import gregtech.api.util.GT_LanguageManager; +import gtPlusPlus.xmod.gregtech.api.enums.GregtechItemList; +import gtPlusPlus.xmod.gregtech.common.blocks.GregtechMetaCasingItems; import net.minecraft.init.Blocks; import net.minecraft.item.ItemStack; import net.minecraftforge.fluids.FluidRegistry; @@ -74,6 +77,10 @@ public String getMachineType() { return "Rock Breaker"; } + private static final String casingBaseName = GT_LanguageManager.getTranslation("gtplusplus.blockcasings.2.0.name"); + private static final String casingMiddleName = GT_LanguageManager.getTranslation("gtplusplus.blockcasings.2.11.name"); + private static final String anyBaseCasing = "Any " + casingBaseName; + @Override protected GT_Multiblock_Tooltip_Builder createTooltip() { GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); @@ -81,12 +88,12 @@ protected GT_Multiblock_Tooltip_Builder createTooltip() { .addInfo("Speed: +200% | EU Usage: 75% | Parallel: Tier x 8").addInfo("Circuit goes in the GUI slot") .addInfo("1 = cobble, 2 = stone, 3 = obsidian").addInfo("Supply Water/Lava") .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(3, 4, 3, true) - .addController("Bottom Center").addCasingInfoMin("Thermal Processing Casing", 9, false) - .addCasingInfoMin("Thermal Containment Casing", 9, false) - .addInputBus("Any Thermal Containment Casing", 1).addInputHatch("Any Thermal Containment Casing", 1) - .addOutputBus("Any Thermal Containment Casing", 1).addEnergyHatch("Any Thermal Containment Casing", 1) - .addMaintenanceHatch("Any Thermal Containment Casing", 1) - .addMufflerHatch("Any Thermal Containment Casing", 1).toolTipFinisher(CORE.GT_Tooltip_Builder.get()); + .addController("Bottom Center").addCasingInfoMin(casingBaseName, 9, false) + .addCasingInfoExactly(casingMiddleName, 16, false) + .addInputBus(anyBaseCasing, 1).addInputHatch(anyBaseCasing, 1) + .addOutputBus(anyBaseCasing, 1).addEnergyHatch(anyBaseCasing, 1) + .addMaintenanceHatch(anyBaseCasing, 1) + .addMufflerHatch(anyBaseCasing, 1).toolTipFinisher(CORE.GT_Tooltip_Builder.get()); return tt; }