Check that we have a quarry arm before trying to tell it what to do
This commit is contained in:
parent
cadd088f0b
commit
85316e16f3
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ public class TileQuarry extends TileMachine implements IArmListener, IMachine, I
|
||||||
if (blockDig(blockId)) {
|
if (blockDig(blockId)) {
|
||||||
blockedColumns[searchX][searchZ] = true;
|
blockedColumns[searchX][searchZ] = true;
|
||||||
} else if (canDig(blockId)) {
|
} else if (canDig(blockId)) {
|
||||||
if (doSet) {
|
if (doSet && arm != null) {
|
||||||
arm.setTarget(bx, by + 1, bz);
|
arm.setTarget(bx, by + 1, bz);
|
||||||
|
|
||||||
targetX = (int) arm.targetX;
|
targetX = (int) arm.targetX;
|
||||||
|
|
Loading…
Reference in a new issue