The Portable Grid now doesn't despawn anymore when dropped in the world, update changelog

This commit is contained in:
raoulvdberge
2017-06-14 15:50:18 +02:00
parent 687725e0b2
commit 401fb0c0eb
2 changed files with 11 additions and 0 deletions

View File

@@ -50,6 +50,11 @@ public class ItemBlockPortableGrid extends ItemBlockEnergyItem {
return super.onItemUse(player, worldIn, pos, hand, facing, hitX, hitY, hitZ);
}
@Override
public int getEntityLifespan(ItemStack stack, World world) {
return Integer.MAX_VALUE;
}
@Override
public boolean shouldCauseReequipAnimation(ItemStack oldStack, ItemStack newStack, boolean slotChanged) {
if (oldStack.getItem() == newStack.getItem()) {