fixed box around blueprints, for #1497
This commit is contained in:
parent
23fb4cf295
commit
c95d21255c
2 changed files with 9 additions and 11 deletions
|
@ -202,6 +202,8 @@ public class TileBuilder extends TileBuildCraft implements IBuilderInventory, IM
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
box.kind = Kind.STRIPES;
|
||||||
|
|
||||||
for (int x = xCoord - 1; x <= xCoord + 1; ++x) {
|
for (int x = xCoord - 1; x <= xCoord + 1; ++x) {
|
||||||
for (int y = yCoord - 1; y <= yCoord + 1; ++y) {
|
for (int y = yCoord - 1; y <= yCoord + 1; ++y) {
|
||||||
for (int z = zCoord - 1; z <= zCoord + 1; ++z) {
|
for (int z = zCoord - 1; z <= zCoord + 1; ++z) {
|
||||||
|
@ -338,6 +340,7 @@ public class TileBuilder extends TileBuildCraft implements IBuilderInventory, IM
|
||||||
if (bluePrintBuilder != null) {
|
if (bluePrintBuilder != null) {
|
||||||
box.reset();
|
box.reset();
|
||||||
box.initialize(bluePrintBuilder);
|
box.initialize(bluePrintBuilder);
|
||||||
|
sendNetworkUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (builderRobot != null) {
|
if (builderRobot != null) {
|
||||||
|
@ -365,6 +368,7 @@ public class TileBuilder extends TileBuildCraft implements IBuilderInventory, IM
|
||||||
|
|
||||||
if (bluePrintBuilder != null) {
|
if (bluePrintBuilder != null) {
|
||||||
box.initialize(bluePrintBuilder);
|
box.initialize(bluePrintBuilder);
|
||||||
|
sendNetworkUpdate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -519,17 +523,18 @@ public class TileBuilder extends TileBuildCraft implements IBuilderInventory, IM
|
||||||
public void updateEntity() {
|
public void updateEntity() {
|
||||||
super.updateEntity();
|
super.updateEntity();
|
||||||
|
|
||||||
|
if (worldObj.isRemote) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ((bluePrintBuilder == null || bluePrintBuilder.done)
|
if ((bluePrintBuilder == null || bluePrintBuilder.done)
|
||||||
&& box.isInitialized()
|
&& box.isInitialized()
|
||||||
//&& (builderRobot == null || builderRobot.done())
|
//&& (builderRobot == null || builderRobot.done())
|
||||||
) {
|
) {
|
||||||
|
|
||||||
box.isVisible = false;
|
|
||||||
box.reset();
|
box.reset();
|
||||||
|
|
||||||
if (!worldObj.isRemote) {
|
sendNetworkUpdate();
|
||||||
sendNetworkUpdate();
|
|
||||||
}
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -539,10 +544,6 @@ public class TileBuilder extends TileBuildCraft implements IBuilderInventory, IM
|
||||||
builderRobot = null;
|
builderRobot = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (worldObj.isRemote) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
iterateBpt();
|
iterateBpt();
|
||||||
debugForceBlueprintCompletion();
|
debugForceBlueprintCompletion();
|
||||||
|
|
||||||
|
@ -554,8 +555,6 @@ public class TileBuilder extends TileBuildCraft implements IBuilderInventory, IM
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Temp fix to make Builders impotent as the World Destroyers they are
|
/* Temp fix to make Builders impotent as the World Destroyers they are
|
||||||
if (bluePrintBuilder != null && !bluePrintBuilder.done) {
|
if (bluePrintBuilder != null && !bluePrintBuilder.done) {
|
||||||
if (!box.isInitialized()) {
|
if (!box.isInitialized()) {
|
||||||
|
|
|
@ -95,7 +95,6 @@ public class TileQuarry extends TileBuildCraft implements IMachine, IPowerRecept
|
||||||
}
|
}
|
||||||
|
|
||||||
if (builderDone) {
|
if (builderDone) {
|
||||||
|
|
||||||
box.isVisible = false;
|
box.isVisible = false;
|
||||||
|
|
||||||
if (arm == null) {
|
if (arm == null) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue