Fixed a bug where Assemblers would fall asleep while there was work to do.
This commit is contained in:
@@ -380,7 +380,7 @@ public class TileMolecularAssembler extends AENetworkInvTile implements IAEAppEn
|
|||||||
pushOut( inv.getStackInSlot( 9 ) );
|
pushOut( inv.getStackInSlot( 9 ) );
|
||||||
ejectHeldItems();
|
ejectHeldItems();
|
||||||
updateSleepyness();
|
updateSleepyness();
|
||||||
return isAwake ? TickRateModulation.SLEEP : TickRateModulation.IDLE;
|
return isAwake ? TickRateModulation.IDLE : TickRateModulation.SLEEP;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( myPlan == null )
|
if ( myPlan == null )
|
||||||
@@ -427,11 +427,11 @@ public class TileMolecularAssembler extends AENetworkInvTile implements IAEAppEn
|
|||||||
{
|
{
|
||||||
FMLCommonHandler.instance().firePlayerCraftingEvent( Platform.getPlayer( (WorldServer) getWorldObj() ), output, craftingInv );
|
FMLCommonHandler.instance().firePlayerCraftingEvent( Platform.getPlayer( (WorldServer) getWorldObj() ), output, craftingInv );
|
||||||
|
|
||||||
|
pushOut( output.copy() );
|
||||||
|
|
||||||
for (int x = 0; x < craftingInv.getSizeInventory(); x++)
|
for (int x = 0; x < craftingInv.getSizeInventory(); x++)
|
||||||
inv.setInventorySlotContents( x, Platform.getContainerItem( craftingInv.getStackInSlot( x ) ) );
|
inv.setInventorySlotContents( x, Platform.getContainerItem( craftingInv.getStackInSlot( x ) ) );
|
||||||
|
|
||||||
pushOut( output.copy() );
|
|
||||||
|
|
||||||
if ( inv.getStackInSlot( 10 ) == null )
|
if ( inv.getStackInSlot( 10 ) == null )
|
||||||
{
|
{
|
||||||
forcePlan = false;
|
forcePlan = false;
|
||||||
@@ -451,7 +451,7 @@ public class TileMolecularAssembler extends AENetworkInvTile implements IAEAppEn
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateSleepyness();
|
updateSleepyness();
|
||||||
return isAwake ? TickRateModulation.SLEEP : TickRateModulation.IDLE;
|
return isAwake ? TickRateModulation.IDLE : TickRateModulation.SLEEP;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user