From db50a549cf2488b5e4c40ca9c86f9b7f950e60e3 Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Thu, 18 Sep 2014 20:33:19 -0500 Subject: [PATCH] Non Networked ME Chests can now have items inserted into them. --- tile/storage/TileChest.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tile/storage/TileChest.java b/tile/storage/TileChest.java index 676eb7d40..0984a43fa 100644 --- a/tile/storage/TileChest.java +++ b/tile/storage/TileChest.java @@ -146,7 +146,8 @@ public class TileChest extends AENetworkPowerTile implements IMEChest, IFluidHan private class invManger extends AETileEventHandler { - public invManger() { + public invManger() + { super( TileEventType.TICK, TileEventType.NETWORK, TileEventType.WORLD_NBT ); } @@ -264,7 +265,8 @@ public class TileChest extends AENetworkPowerTile implements IMEChest, IFluidHan recalculateDisplay(); } - public TileChest() { + public TileChest() + { internalMaxPower = PowerMultiplier.CONFIG.multiply( 40 ); gridProxy.setFlags( GridFlags.REQUIRE_CHANNEL ); addNewHandler( new invManger() ); @@ -299,7 +301,8 @@ public class TileChest extends AENetworkPowerTile implements IMEChest, IFluidHan final StorageChannel chan; - public ChestNetNotifier(StorageChannel chan) { + public ChestNetNotifier(StorageChannel chan) + { this.chan = chan; } @@ -343,7 +346,8 @@ public class TileChest extends AENetworkPowerTile implements IMEChest, IFluidHan class ChestMonitorHandler extends MEMonitorHandler { - public ChestMonitorHandler(IMEInventoryHandler t) { + public ChestMonitorHandler(IMEInventoryHandler t) + { super( t ); } @@ -520,7 +524,7 @@ public class TileChest extends AENetworkPowerTile implements IMEChest, IFluidHan if ( ForgeDirection.SOUTH == side ) return front; - if ( gridProxy.isActive() ) + if ( isPowered() ) { try {