Merge pull request #268 from psxlover/Fixpathmarkers

Fix builder with paths
This commit is contained in:
SirSengir 2012-09-14 14:36:21 -07:00
commit b902e8b82c

View file

@ -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) {
@ -237,6 +240,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);
}
@ -341,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<BlockIndex> it = path.iterator();
BlockIndex start = it.next();