Fixed a bug where Assemblers would fall asleep while there was work to do.

This commit is contained in:
AlgorithmX2
2014-07-11 19:02:09 -05:00
parent 781936dcc1
commit 7fb22a8550
+4 -4
View File
@@ -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;
}
}