Fixes constant reequip animation on portable cells/terminals (#2690)

Fix for portable cell and wireless terminal going into re-equip animations when GUI is open.
This commit is contained in:
dshadowwolf 2016-12-08 06:34:41 -05:00 committed by yueh
parent eb1e86cacb
commit 6bf52b0b0f
2 changed files with 12 additions and 0 deletions

View File

@ -186,4 +186,10 @@ public class ToolPortableCell extends AEBasePoweredItem implements IStorageCell,
{
return new PortableCellViewer( is, pos.getX() );
}
@Override
public boolean shouldCauseReequipAnimation( ItemStack oldStack, ItemStack newStack, boolean slotChanged )
{
return slotChanged;
}
}

View File

@ -150,4 +150,10 @@ public class ToolWirelessTerminal extends AEBasePoweredItem implements IWireless
tag.setString( "encryptionKey", encKey );
tag.setString( "name", name );
}
@Override
public boolean shouldCauseReequipAnimation( ItemStack oldStack, ItemStack newStack, boolean slotChanged )
{
return slotChanged;
}
}