Cache the STORAGE_MONITORABLE_ACCESSOR Capability to reduce the amount of MENetworkCellArrayUpdates (#3077)
This commit is contained in:
@@ -1423,7 +1423,7 @@ public class Platform
|
|||||||
|
|
||||||
if( target.hasCapability( Capabilities.STORAGE_MONITORABLE_ACCESSOR, null ) )
|
if( target.hasCapability( Capabilities.STORAGE_MONITORABLE_ACCESSOR, null ) )
|
||||||
{
|
{
|
||||||
return 0;
|
return target.getCapability( Capabilities.STORAGE_MONITORABLE_ACCESSOR, null ).hashCode();
|
||||||
}
|
}
|
||||||
else if( target instanceof TileEntityChest )
|
else if( target instanceof TileEntityChest )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user