diff --git a/Plugin Cubot/src/main/java/net/simon987/cubotplugin/CubotLaser.java b/Plugin Cubot/src/main/java/net/simon987/cubotplugin/CubotLaser.java index ec23720..22a3a17 100644 --- a/Plugin Cubot/src/main/java/net/simon987/cubotplugin/CubotLaser.java +++ b/Plugin Cubot/src/main/java/net/simon987/cubotplugin/CubotLaser.java @@ -49,7 +49,7 @@ public class CubotLaser extends CpuHardware { ArrayList objects = cubot.getWorld().getGameObjectsAt(frontTile.x, frontTile.y); - if (cubot.getAction() != Action.IDLE && objects.size() > 0) { + if (cubot.getAction() == Action.IDLE && objects.size() > 0) { //FIXME: Problem here if more than 1 object if (objects.get(0) instanceof InventoryHolder) { if (((InventoryHolder) objects.get(0)).canTakeItem(b)) {