Merge pull request #399 from tcooc/patch-7

Override new addInformation method for 1.4.2.
This commit is contained in:
CovertJaguar 2012-11-08 22:30:04 -08:00
commit d267a91e69

View file

@ -38,7 +38,7 @@ public abstract class ItemBptBase extends ItemBuildCraft {
@SuppressWarnings({ "all" }) @SuppressWarnings({ "all" })
// @Override (client only) // @Override (client only)
public void addInformation(ItemStack itemstack, List list) { public void addInformation(ItemStack itemstack, EntityPlayer player, List list, boolean advanced) {
if (itemstack.hasTagCompound() && itemstack.getTagCompound().hasKey("BptName")) { if (itemstack.hasTagCompound() && itemstack.getTagCompound().hasKey("BptName")) {
list.add(itemstack.getTagCompound().getString("BptName")); list.add(itemstack.getTagCompound().getString("BptName"));
} }
@ -56,11 +56,6 @@ public abstract class ItemBptBase extends ItemBuildCraft {
return itemStack; return itemStack;
} }
@Override
public boolean getShareTag() {
return true;
}
@Override @Override
public void onUpdate(ItemStack itemstack, World world, Entity entity, int i, boolean flag) {} public void onUpdate(ItemStack itemstack, World world, Entity entity, int i, boolean flag) {}