diff options
author | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2018-10-24 15:23:33 +0100 |
---|---|---|
committer | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2018-10-24 15:23:33 +0100 |
commit | 5ea5183724134c5ca6259ef7efcf46209661ecc7 (patch) | |
tree | 42c8633394c05f74a00ff508e16f878e7a779fa0 /src/Java/gtPlusPlus/xmod/gregtech/common/tileentities | |
parent | 77988b402385ebdb5becc80c6c178648cb5f5642 (diff) | |
download | GT5-Unofficial-5ea5183724134c5ca6259ef7efcf46209661ecc7.tar.gz GT5-Unofficial-5ea5183724134c5ca6259ef7efcf46209661ecc7.tar.bz2 GT5-Unofficial-5ea5183724134c5ca6259ef7efcf46209661ecc7.zip |
+ Added ASM patch for GT MetaTile Tooltips.
% Improve GT ASM.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/common/tileentities')
-rw-r--r-- | src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/GT_MetaTileEntity_TieredTank.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/GT_MetaTileEntity_TieredTank.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/GT_MetaTileEntity_TieredTank.java index 34056ced24..e0cfd78a6d 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/GT_MetaTileEntity_TieredTank.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/GT_MetaTileEntity_TieredTank.java @@ -26,7 +26,15 @@ public class GT_MetaTileEntity_TieredTank extends GT_MetaTileEntity_BasicTank { @Override public String[] getDescription() { - return new String[] {this.mDescription, "Not a portable tank.", CORE.GT_Tooltip}; + String[] aTip; + if (this.mFluid == null) { + //aTip = new String[] {this.mDescription, "Not a very portable tank.", CORE.GT_Tooltip}; + aTip = super.getDescription(); + } + else { + aTip = new String[] {this.mDescription, "A portable tank.", "Fluid: "+mFluid.getLocalizedName()+" "+mFluid.amount+"L", CORE.GT_Tooltip}; + } + return aTip; } @Override |