Cache the STORAGE_MONITORABLE_ACCESSOR Capability to reduce the amount of MENetworkCellArrayUpdates

This commit is contained in:
Florian Scandella
2017-09-04 14:36:36 +02:00
parent 375e1efb15
commit db1cd8c312
@@ -414,7 +414,7 @@ public class PartStorageBus extends PartUpgradeable implements IGridTickable, IC
if( target.hasCapability( Capabilities.STORAGE_MONITORABLE_ACCESSOR, targetSide ) )
{
return 0;
return Objects.hash( target, target.getCapability( Capabilities.STORAGE_MONITORABLE_ACCESSOR, targetSide ) );
}
final IItemHandler itemHandler = target.getCapability( CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, targetSide );