This commit is contained in:
simon
2017-12-28 20:33:57 -05:00
parent dab5cab602
commit 2fb7d2f73e
3 changed files with 8 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ public class CubotDrill extends CpuHardware {
} else if (a == GATHER_SLOW || a == GATHER_FAST) {
if (cubot.spendEnergy(1400)) {
if (cubot.getAction() == Action.IDLE) {
if (cubot.getCurrentAction() == Action.IDLE) {
int tile = cubot.getWorld().getTileMap().getTileAt(cubot.getX(), cubot.getY());
if (tile == TileMap.IRON_TILE) {