Check that we have a quarry arm before trying to tell it what to do

This commit is contained in:
Krapht 2012-07-05 18:27:46 +02:00
parent cadd088f0b
commit 85316e16f3

View file

@ -291,7 +291,7 @@ public class TileQuarry extends TileMachine implements IArmListener, IMachine, I
if (blockDig(blockId)) {
blockedColumns[searchX][searchZ] = true;
} else if (canDig(blockId)) {
if (doSet) {
if (doSet && arm != null) {
arm.setTarget(bx, by + 1, bz);
targetX = (int) arm.targetX;