Fix forcePlan Flag.
This commit is contained in:
parent
115c3e597a
commit
20de41caca
1 changed files with 5 additions and 2 deletions
|
@ -122,6 +122,7 @@ public class TileMolecularAssembler extends AENetworkInvTile implements IAEAppEn
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
progress = 0;
|
progress = 0;
|
||||||
|
forcePlan = false;
|
||||||
myPlan = null;
|
myPlan = null;
|
||||||
myPattern = null;
|
myPattern = null;
|
||||||
}
|
}
|
||||||
|
@ -189,7 +190,7 @@ public class TileMolecularAssembler extends AENetworkInvTile implements IAEAppEn
|
||||||
@Override
|
@Override
|
||||||
public void writeToNBT(NBTTagCompound data)
|
public void writeToNBT(NBTTagCompound data)
|
||||||
{
|
{
|
||||||
if ( forcePlan )
|
if ( forcePlan && myPlan != null )
|
||||||
{
|
{
|
||||||
ItemStack pattern = myPlan.getPattern();
|
ItemStack pattern = myPlan.getPattern();
|
||||||
if ( pattern != null )
|
if ( pattern != null )
|
||||||
|
@ -426,8 +427,10 @@ public class TileMolecularAssembler extends AENetworkInvTile implements IAEAppEn
|
||||||
pushOut( output.copy() );
|
pushOut( output.copy() );
|
||||||
|
|
||||||
if ( inv.getStackInSlot( 10 ) == null )
|
if ( inv.getStackInSlot( 10 ) == null )
|
||||||
|
{
|
||||||
|
forcePlan = false;
|
||||||
myPlan = null;
|
myPlan = null;
|
||||||
|
}
|
||||||
ejectHeldItems();
|
ejectHeldItems();
|
||||||
|
|
||||||
updateSleepyness();
|
updateSleepyness();
|
||||||
|
|
Loading…
Add table
Reference in a new issue