Merge pull request #399 from tcooc/patch-7
Override new addInformation method for 1.4.2.
This commit is contained in:
commit
d267a91e69
1 changed files with 1 additions and 6 deletions
|
@ -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) {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue