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:
@@ -186,4 +186,10 @@ public class ToolPortableCell extends AEBasePoweredItem implements IStorageCell,
|
|||||||
{
|
{
|
||||||
return new PortableCellViewer( is, pos.getX() );
|
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( "encryptionKey", encKey );
|
||||||
tag.setString( "name", name );
|
tag.setString( "name", name );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean shouldCauseReequipAnimation( ItemStack oldStack, ItemStack newStack, boolean slotChanged )
|
||||||
|
{
|
||||||
|
return slotChanged;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user