The Portable Grid now doesn't despawn anymore when dropped in the world, update changelog
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user