fixed box around blueprints, for #1497

This commit is contained in:
SpaceToad 2014-03-30 00:03:09 +01:00
parent 23fb4cf295
commit c95d21255c
2 changed files with 9 additions and 11 deletions

View file

@ -202,6 +202,8 @@ public class TileBuilder extends TileBuildCraft implements IBuilderInventory, IM
return;
}
box.kind = Kind.STRIPES;
for (int x = xCoord - 1; x <= xCoord + 1; ++x) {
for (int y = yCoord - 1; y <= yCoord + 1; ++y) {
for (int z = zCoord - 1; z <= zCoord + 1; ++z) {
@ -338,6 +340,7 @@ public class TileBuilder extends TileBuildCraft implements IBuilderInventory, IM
if (bluePrintBuilder != null) {
box.reset();
box.initialize(bluePrintBuilder);
sendNetworkUpdate();
}
if (builderRobot != null) {
@ -365,6 +368,7 @@ public class TileBuilder extends TileBuildCraft implements IBuilderInventory, IM
if (bluePrintBuilder != null) {
box.initialize(bluePrintBuilder);
sendNetworkUpdate();
}
}
}
@ -519,17 +523,18 @@ public class TileBuilder extends TileBuildCraft implements IBuilderInventory, IM
public void updateEntity() {
super.updateEntity();
if (worldObj.isRemote) {
return;
}
if ((bluePrintBuilder == null || bluePrintBuilder.done)
&& box.isInitialized()
//&& (builderRobot == null || builderRobot.done())
) {
box.isVisible = false;
box.reset();
if (!worldObj.isRemote) {
sendNetworkUpdate();
}
sendNetworkUpdate();
return;
}
@ -539,10 +544,6 @@ public class TileBuilder extends TileBuildCraft implements IBuilderInventory, IM
builderRobot = null;
}
if (worldObj.isRemote) {
return;
}
iterateBpt();
debugForceBlueprintCompletion();
@ -554,8 +555,6 @@ public class TileBuilder extends TileBuildCraft implements IBuilderInventory, IM
return;
}
/* Temp fix to make Builders impotent as the World Destroyers they are
if (bluePrintBuilder != null && !bluePrintBuilder.done) {
if (!box.isInitialized()) {

View file

@ -95,7 +95,6 @@ public class TileQuarry extends TileBuildCraft implements IMachine, IPowerRecept
}
if (builderDone) {
box.isVisible = false;
if (arm == null) {