From 5a5552cde7c60d2cdbbdf009aef9888f4a3e08f9 Mon Sep 17 00:00:00 2001 From: Alkalus <3060479+draknyte1@users.noreply.github.com> Date: Sat, 18 Aug 2018 18:03:04 +1000 Subject: + Added Forming Press mode to the Large Bending Machine. Closes #347. + Added a command to dump TC aspect information from all Items & Blocks. Use /DA or /DumpAspects to begin the process. $ Fixed PSS not accepting any tier Hatches. Closes #354, also fixes https://github.com/GTNewHorizons/NewHorizons/issues/3470. $ Fixed Hand-Pumps duping things, because other modders can't follow guidelines. Closes #353. $ Fixed a rare bug involving Hand-Pumps & EU items having getDisplayName() called on them. $ Fixed an issue where some Multiblocks had a bad GUI. $ Removed TC libs from my custom Railcraft build. --- src/Java/gtPlusPlus/core/item/base/BaseEuItem.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/Java/gtPlusPlus/core/item/base') diff --git a/src/Java/gtPlusPlus/core/item/base/BaseEuItem.java b/src/Java/gtPlusPlus/core/item/base/BaseEuItem.java index 57e183f998..b4988136c0 100644 --- a/src/Java/gtPlusPlus/core/item/base/BaseEuItem.java +++ b/src/Java/gtPlusPlus/core/item/base/BaseEuItem.java @@ -572,7 +572,11 @@ public class BaseEuItem extends Item implements ISpecialElectricItem, IElectricI @Override public String getItemStackDisplayName(final ItemStack par1ItemStack) { - return this.itemName.get(par1ItemStack.getItemDamage()-this.mOffset).getValue(); + int keyValue = (par1ItemStack.getItemDamage() - this.mOffset); + if (keyValue < 0 || keyValue > 3) { + keyValue = 0; + } + return this.itemName.get(keyValue).getValue(); } } -- cgit