From f0b058959a9bb66a9af6ce1b5bb48fa3127ba2f2 Mon Sep 17 00:00:00 2001 From: kepler155c Date: Wed, 28 Nov 2018 16:03:59 -0500 Subject: [PATCH] attack chests --- farms/attack.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/farms/attack.lua b/farms/attack.lua index 42c5033..f5a2ad0 100644 --- a/farms/attack.lua +++ b/farms/attack.lua @@ -99,7 +99,7 @@ local function dropOff() for _, slot in pairs(inv) do if slot.count >= 16 then local chests = findChests() - for c in pairs(Point.iterateClosest(chests)) do + for c in Point.iterateClosest(turtle.point, chests) do if turtle.dropDownAt(c, slot.name) then chest = c break