diff options
author | querns <33518699+querns@users.noreply.github.com> | 2023-08-03 17:06:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-04 00:06:50 +0200 |
commit | 7dbe562ce01d4f76b893d98c5d86108c66774f09 (patch) | |
tree | afb07089593d9a7d6dcc454602929e2185ed66f5 /src/main/java/gtPlusPlus/xmod | |
parent | dea0915106c5314f25558f90c1958ff62365a806 (diff) | |
download | GT5-Unofficial-7dbe562ce01d4f76b893d98c5d86108c66774f09.tar.gz GT5-Unofficial-7dbe562ce01d4f76b893d98c5d86108c66774f09.tar.bz2 GT5-Unofficial-7dbe562ce01d4f76b893d98c5d86108c66774f09.zip |
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
Diffstat (limited to 'src/main/java/gtPlusPlus/xmod')
2 files changed, 6 insertions, 3 deletions
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; } diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechCustomHatches.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechCustomHatches.java index bee1aafbd8..da757cf677 100644 --- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechCustomHatches.java +++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechCustomHatches.java @@ -91,7 +91,7 @@ public class GregtechCustomHatches { // Multiblock Reservoir Hatch GregtechItemList.Hatch_Reservoir.set( - new GT_MetaTileEntity_Hatch_Reservoir(31071, "hatch.water.intake.tier.00", "Reservoir Hatch", 6) + new GT_MetaTileEntity_Hatch_Reservoir(31071, "hatch.water.intake.tier.00", "Reservoir Hatch", 4) .getStackForm(1L)); // Steam Hatch |