From 7fb22a8550d665ed7026476f9bebcf2a35e147ed Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Fri, 11 Jul 2014 19:02:09 -0500 Subject: [PATCH] Fixed a bug where Assemblers would fall asleep while there was work to do. --- tile/crafting/TileMolecularAssembler.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tile/crafting/TileMolecularAssembler.java b/tile/crafting/TileMolecularAssembler.java index d21863b9b..9db92a259 100644 --- a/tile/crafting/TileMolecularAssembler.java +++ b/tile/crafting/TileMolecularAssembler.java @@ -380,7 +380,7 @@ public class TileMolecularAssembler extends AENetworkInvTile implements IAEAppEn pushOut( inv.getStackInSlot( 9 ) ); ejectHeldItems(); updateSleepyness(); - return isAwake ? TickRateModulation.SLEEP : TickRateModulation.IDLE; + return isAwake ? TickRateModulation.IDLE : TickRateModulation.SLEEP; } if ( myPlan == null ) @@ -427,11 +427,11 @@ public class TileMolecularAssembler extends AENetworkInvTile implements IAEAppEn { FMLCommonHandler.instance().firePlayerCraftingEvent( Platform.getPlayer( (WorldServer) getWorldObj() ), output, craftingInv ); + pushOut( output.copy() ); + for (int x = 0; x < craftingInv.getSizeInventory(); x++) inv.setInventorySlotContents( x, Platform.getContainerItem( craftingInv.getStackInSlot( x ) ) ); - pushOut( output.copy() ); - if ( inv.getStackInSlot( 10 ) == null ) { forcePlan = false; @@ -451,7 +451,7 @@ public class TileMolecularAssembler extends AENetworkInvTile implements IAEAppEn } updateSleepyness(); - return isAwake ? TickRateModulation.SLEEP : TickRateModulation.IDLE; + return isAwake ? TickRateModulation.IDLE : TickRateModulation.SLEEP; } }