Non Networked ME Chests can now have items inserted into them.
This commit is contained in:
parent
57d23dd2a7
commit
db50a549cf
1 changed files with 9 additions and 5 deletions
|
@ -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<T extends IAEStack> extends MEMonitorHandler<T>
|
||||
{
|
||||
|
||||
public ChestMonitorHandler(IMEInventoryHandler<T> t) {
|
||||
public ChestMonitorHandler(IMEInventoryHandler<T> 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
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue