From e96b7982c8bbeed83af8ba885dff75b6fc70ab21 Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 28 Dec 2017 15:33:28 -0500 Subject: [PATCH] Fixed Biomass pickup problem --- .../src/main/java/net/simon987/cubotplugin/CubotLaser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {