Molecular Assemblers Should not have passive drain.

This commit is contained in:
AlgorithmX2 2014-08-25 20:22:32 -05:00
parent 843578c8db
commit 7b298ee301

View file

@ -248,6 +248,7 @@ public class TileMolecularAssembler extends AENetworkInvTile implements IAEAppEn
public TileMolecularAssembler() { public TileMolecularAssembler() {
settings.registerSetting( Settings.REDSTONE_CONTROLLED, RedstoneMode.IGNORE ); settings.registerSetting( Settings.REDSTONE_CONTROLLED, RedstoneMode.IGNORE );
inv.setMaxStackSize( 1 ); inv.setMaxStackSize( 1 );
gridProxy.setIdlePowerUsage( 0.0 );
addNewHandler( new TileMolecularAssemblerHandler() ); addNewHandler( new TileMolecularAssemblerHandler() );
} }
@ -399,9 +400,9 @@ public class TileMolecularAssembler extends AENetworkInvTile implements IAEAppEn
if ( reboot ) if ( reboot )
TicksSinceLastCall = 1; TicksSinceLastCall = 1;
if ( ! isAwake ) if ( !isAwake )
return TickRateModulation.SLEEP; return TickRateModulation.SLEEP;
reboot = false; reboot = false;
int speed = 10; int speed = 10;
switch (upgrades.getInstalledUpgrades( Upgrades.SPEED )) switch (upgrades.getInstalledUpgrades( Upgrades.SPEED ))
@ -479,7 +480,7 @@ public class TileMolecularAssembler extends AENetworkInvTile implements IAEAppEn
ItemStack is = inv.getStackInSlot( x ); ItemStack is = inv.getStackInSlot( x );
if ( is != null ) if ( is != null )
{ {
if ( myPlan == null || ! myPlan.isValidItemForSlot( x, is, worldObj ) ) if ( myPlan == null || !myPlan.isValidItemForSlot( x, is, worldObj ) )
{ {
inv.setInventorySlotContents( 9, is ); inv.setInventorySlotContents( 9, is );
inv.setInventorySlotContents( x, null ); inv.setInventorySlotContents( x, null );