Removed Import/Export Tile Caching.

This commit is contained in:
AlgorithmX2 2014-02-11 22:43:31 -06:00
parent ae3e240080
commit 4ced9575a8

View file

@ -60,16 +60,11 @@ public abstract class PartSharedItemBus extends PartUpgradeable implements IGrid
AppEngInternalAEInventory config = new AppEngInternalAEInventory( this, 9 );
boolean cached = false;
int adaptorHash = 0;
InventoryAdaptor adaptor;
InventoryAdaptor getHandler()
{
if ( cached )
return adaptor;
cached = true;
TileEntity self = getHost().getTile();
TileEntity target = getTileEntity( self, self.xCoord + side.offsetX, self.yCoord + side.offsetY, self.zCoord + side.offsetZ );
@ -80,7 +75,6 @@ public abstract class PartSharedItemBus extends PartUpgradeable implements IGrid
adaptorHash = newAdaptorHash;
adaptor = InventoryAdaptor.getAdaptor( target, side.getOpposite() );
cached = true;
return adaptor;
}
@ -103,7 +97,6 @@ public abstract class PartSharedItemBus extends PartUpgradeable implements IGrid
private void updateState()
{
cached = false;
try
{
if ( !isSleeping() )