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:
parent
eb1e86cacb
commit
6bf52b0b0f
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue