attack chests

This commit is contained in:
kepler155c
2018-11-28 16:03:59 -05:00
parent b6bad398ca
commit f0b058959a

View File

@@ -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