Typo Sleepyness
This commit is contained in:
@@ -94,7 +94,7 @@ public class TileMolecularAssembler extends AENetworkInvTile implements IAEAppEn
|
|||||||
for (int x = 0; x < table.getSizeInventory(); x++)
|
for (int x = 0; x < table.getSizeInventory(); x++)
|
||||||
inv.setInventorySlotContents( x, table.getStackInSlot( x ) );
|
inv.setInventorySlotContents( x, table.getStackInSlot( x ) );
|
||||||
|
|
||||||
updateSleepyness();
|
updateSleepiness();
|
||||||
markDirty();
|
markDirty();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -136,10 +136,10 @@ public class TileMolecularAssembler extends AENetworkInvTile implements IAEAppEn
|
|||||||
pushDirection = ForgeDirection.UNKNOWN;
|
pushDirection = ForgeDirection.UNKNOWN;
|
||||||
}
|
}
|
||||||
|
|
||||||
updateSleepyness();
|
updateSleepiness();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateSleepyness()
|
private void updateSleepiness()
|
||||||
{
|
{
|
||||||
boolean wasEnabled = isAwake;
|
boolean wasEnabled = isAwake;
|
||||||
isAwake = myPlan != null && hasMats() || canPush();
|
isAwake = myPlan != null && hasMats() || canPush();
|
||||||
@@ -354,7 +354,7 @@ public class TileMolecularAssembler extends AENetworkInvTile implements IAEAppEn
|
|||||||
public TickingRequest getTickingRequest(IGridNode node)
|
public TickingRequest getTickingRequest(IGridNode node)
|
||||||
{
|
{
|
||||||
recalculatePlan();
|
recalculatePlan();
|
||||||
updateSleepyness();
|
updateSleepiness();
|
||||||
return new TickingRequest( 1, 1, !isAwake, false );
|
return new TickingRequest( 1, 1, !isAwake, false );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -381,14 +381,14 @@ public class TileMolecularAssembler extends AENetworkInvTile implements IAEAppEn
|
|||||||
markDirty();
|
markDirty();
|
||||||
|
|
||||||
ejectHeldItems();
|
ejectHeldItems();
|
||||||
updateSleepyness();
|
updateSleepiness();
|
||||||
progress = 0;
|
progress = 0;
|
||||||
return isAwake ? TickRateModulation.IDLE : TickRateModulation.SLEEP;
|
return isAwake ? TickRateModulation.IDLE : TickRateModulation.SLEEP;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( myPlan == null )
|
if ( myPlan == null )
|
||||||
{
|
{
|
||||||
updateSleepyness();
|
updateSleepiness();
|
||||||
return TickRateModulation.SLEEP;
|
return TickRateModulation.SLEEP;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -459,7 +459,7 @@ public class TileMolecularAssembler extends AENetworkInvTile implements IAEAppEn
|
|||||||
}
|
}
|
||||||
|
|
||||||
markDirty();
|
markDirty();
|
||||||
updateSleepyness();
|
updateSleepiness();
|
||||||
return isAwake ? TickRateModulation.IDLE : TickRateModulation.SLEEP;
|
return isAwake ? TickRateModulation.IDLE : TickRateModulation.SLEEP;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user