Controller and Energy Acceptor now use a shared empty inventory, less memory!

This commit is contained in:
AlgorithmX2
2014-07-17 15:14:44 -05:00
parent 683a5ee765
commit bd61261869
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -154,8 +154,8 @@ public class TileController extends AENetworkPowerTile implements IAEPowerStorag
worldObj.setBlockMetadataWithNotify( xCoord, yCoord, zCoord, meta, 2 ); worldObj.setBlockMetadataWithNotify( xCoord, yCoord, zCoord, meta, 2 );
} }
final int sides[] = new int[] { 0 }; final int sides[] = new int[] {};
AppEngInternalInventory inv = new AppEngInternalInventory( this, 1 ); static final AppEngInternalInventory inv = new AppEngInternalInventory( null, 0 );
@Override @Override
public IInventory getInternalInventory() public IInventory getInternalInventory()
+1 -1
View File
@@ -18,7 +18,7 @@ public class TileEnergyAcceptor extends AENetworkPowerTile
{ {
final int sides[] = new int[] {}; final int sides[] = new int[] {};
AppEngInternalInventory inv = new AppEngInternalInventory( this, 0 ); final static AppEngInternalInventory inv = new AppEngInternalInventory( null, 0 );
@Override @Override
public AECableType getCableConnectionType(ForgeDirection dir) public AECableType getCableConnectionType(ForgeDirection dir)