From 362c95be2b2b04a1e47a2859e144cce0add3609e Mon Sep 17 00:00:00 2001 From: psxlover Date: Fri, 14 Sep 2012 23:26:39 +0300 Subject: [PATCH 1/2] Fixed path showing of builder. --- common/buildcraft/builders/TileBuilder.java | 1 + 1 file changed, 1 insertion(+) diff --git a/common/buildcraft/builders/TileBuilder.java b/common/buildcraft/builders/TileBuilder.java index e628d0df..6c92e220 100644 --- a/common/buildcraft/builders/TileBuilder.java +++ b/common/buildcraft/builders/TileBuilder.java @@ -237,6 +237,7 @@ public class TileBuilder extends TileBuildCraft implements IBuilderInventory, IP new Position(b.i + 0.5, b.j + 0.5, b.k + 0.5)); laser.setTexture(DefaultProps.TEXTURE_PATH_ENTITIES + "/laser_1.png"); + laser.show(); worldObj.spawnEntityInWorld(laser); pathLasers.add(laser); } From ae0a265751ccdd33ec69b40458add53cbaebcd32 Mon Sep 17 00:00:00 2001 From: psxlover Date: Sat, 15 Sep 2012 00:09:15 +0300 Subject: [PATCH 2/2] Fix builder with path. No crashing now after setting the builder. Also made the builder not crash if there is only one point in the path (probably it was crashing in a prior version too). --- common/buildcraft/builders/TileBuilder.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/buildcraft/builders/TileBuilder.java b/common/buildcraft/builders/TileBuilder.java index 6c92e220..f472838d 100644 --- a/common/buildcraft/builders/TileBuilder.java +++ b/common/buildcraft/builders/TileBuilder.java @@ -193,6 +193,9 @@ public class TileBuilder extends TileBuildCraft implements IBuilderInventory, IP public void initialize() { super.initialize(); + if (CoreProxy.proxy.isRenderWorld(worldObj)) + return; + 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) { @@ -342,7 +345,7 @@ public class TileBuilder extends TileBuildCraft implements IBuilderInventory, IP } if (bluePrintBuilder == null || bluePrintBuilder.done) { - if (path != null) { + if (path != null && path.size() > 1) { if (currentPathIterator == null) { Iterator it = path.iterator(); BlockIndex start = it.next();