Merge pull request #268 from psxlover/Fixpathmarkers
Fix builder with paths
This commit is contained in:
commit
b902e8b82c
1 changed files with 5 additions and 1 deletions
|
@ -193,6 +193,9 @@ public class TileBuilder extends TileBuildCraft implements IBuilderInventory, IP
|
||||||
public void initialize() {
|
public void initialize() {
|
||||||
super.initialize();
|
super.initialize();
|
||||||
|
|
||||||
|
if (CoreProxy.proxy.isRenderWorld(worldObj))
|
||||||
|
return;
|
||||||
|
|
||||||
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) {
|
||||||
|
@ -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));
|
new Position(b.i + 0.5, b.j + 0.5, b.k + 0.5));
|
||||||
|
|
||||||
laser.setTexture(DefaultProps.TEXTURE_PATH_ENTITIES + "/laser_1.png");
|
laser.setTexture(DefaultProps.TEXTURE_PATH_ENTITIES + "/laser_1.png");
|
||||||
|
laser.show();
|
||||||
worldObj.spawnEntityInWorld(laser);
|
worldObj.spawnEntityInWorld(laser);
|
||||||
pathLasers.add(laser);
|
pathLasers.add(laser);
|
||||||
}
|
}
|
||||||
|
@ -341,7 +345,7 @@ public class TileBuilder extends TileBuildCraft implements IBuilderInventory, IP
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bluePrintBuilder == null || bluePrintBuilder.done) {
|
if (bluePrintBuilder == null || bluePrintBuilder.done) {
|
||||||
if (path != null) {
|
if (path != null && path.size() > 1) {
|
||||||
if (currentPathIterator == null) {
|
if (currentPathIterator == null) {
|
||||||
Iterator<BlockIndex> it = path.iterator();
|
Iterator<BlockIndex> it = path.iterator();
|
||||||
BlockIndex start = it.next();
|
BlockIndex start = it.next();
|
||||||
|
|
Loading…
Reference in a new issue