From 7dbe562ce01d4f76b893d98c5d86108c66774f09 Mon Sep 17 00:00:00 2001 From: querns <33518699+querns@users.noreply.github.com> Date: Thu, 3 Aug 2023 17:06:50 -0500 Subject: Lower reservoir hatch tier to EV, add tooltip showing tier for reservoir + air intake hatches (#713) * Lower reservoir hatch tier to EV, add tooltip showing tier for reservoir + air intake hatches * Use getColoredTierNameFromTier instead of rolling our own --- .../implementations/GT_MetaTileEntity_Hatch_FluidGenerator.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/main/java/gtPlusPlus/xmod/gregtech/api') diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_FluidGenerator.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_FluidGenerator.java index e5fe875ab7..fa6cdff33b 100644 --- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_FluidGenerator.java +++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_FluidGenerator.java @@ -46,10 +46,13 @@ public abstract class GT_MetaTileEntity_Hatch_FluidGenerator extends GT_MetaTile @Override public synchronized String[] getDescription() { mDescriptionArray[1] = "Capacity: " + GT_Utility.formatNumbers(getCapacity()) + "L"; + final String[] hatchTierString = new String[] { "Hatch Tier: " + GT_Utility.getColoredTierNameFromTier(mTier) }; + String[] aCustomTips = getCustomTooltip(); - final String[] desc = new String[mDescriptionArray.length + aCustomTips.length + 1]; + final String[] desc = new String[mDescriptionArray.length + aCustomTips.length + 2]; System.arraycopy(mDescriptionArray, 0, desc, 0, mDescriptionArray.length); - System.arraycopy(aCustomTips, 0, desc, mDescriptionArray.length, aCustomTips.length); + System.arraycopy(hatchTierString, 0, desc, mDescriptionArray.length, 1); + System.arraycopy(aCustomTips, 0, desc, mDescriptionArray.length + 1, aCustomTips.length); desc[mDescriptionArray.length + aCustomTips.length] = CORE.GT_Tooltip.get(); return desc; } -- cgit