fixed post processing calls, fix #1656
This commit is contained in:
parent
6c43b63f27
commit
b752213a31
1 changed files with 17 additions and 14 deletions
|
@ -350,6 +350,10 @@ public class TileBuilder extends TileAbstractBuilder implements IMachine {
|
||||||
xCoord, yCoord, zCoord)].getOpposite());
|
xCoord, yCoord, zCoord)].getOpposite());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (bluePrintBuilder != null && bluePrintBuilder.isDone(this)) {
|
||||||
|
bluePrintBuilder.postProcessing(worldObj);
|
||||||
|
}
|
||||||
|
|
||||||
bluePrintBuilder = currentPathIterator.next();
|
bluePrintBuilder = currentPathIterator.next();
|
||||||
|
|
||||||
if (bluePrintBuilder != null) {
|
if (bluePrintBuilder != null) {
|
||||||
|
@ -367,6 +371,8 @@ public class TileBuilder extends TileAbstractBuilder implements IMachine {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (bluePrintBuilder != null && bluePrintBuilder.isDone(this)) {
|
if (bluePrintBuilder != null && bluePrintBuilder.isDone(this)) {
|
||||||
|
bluePrintBuilder.postProcessing(worldObj);
|
||||||
|
|
||||||
done = true;
|
done = true;
|
||||||
bluePrintBuilder = null;
|
bluePrintBuilder = null;
|
||||||
} else {
|
} else {
|
||||||
|
@ -382,6 +388,17 @@ public class TileBuilder extends TileAbstractBuilder implements IMachine {
|
||||||
|
|
||||||
updateRequirements();
|
updateRequirements();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (done) {
|
||||||
|
for (int i = 1; i < items.length; ++i) {
|
||||||
|
if (items[i] == null) {
|
||||||
|
items[i] = items[0];
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
items[0] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -678,20 +695,6 @@ public class TileBuilder extends TileAbstractBuilder implements IMachine {
|
||||||
if (bluePrintBuilder != null) {
|
if (bluePrintBuilder != null) {
|
||||||
bluePrintBuilder.buildNextSlot(worldObj, this, xCoord, yCoord, zCoord);
|
bluePrintBuilder.buildNextSlot(worldObj, this, xCoord, yCoord, zCoord);
|
||||||
|
|
||||||
if (bluePrintBuilder.isDone(this)) {
|
|
||||||
bluePrintBuilder.postProcessing(worldObj);
|
|
||||||
bluePrintBuilder = null;
|
|
||||||
|
|
||||||
for (int i = 1; i < items.length; ++i) {
|
|
||||||
if (items [i] == null) {
|
|
||||||
items [i] = items [0];
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
items [0] = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
updateRequirements();
|
updateRequirements();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue