attack dropping modules

This commit is contained in:
kepler155c@gmail.com
2018-12-16 22:38:25 -05:00
parent 82a82fbcab
commit e0c45bd87c
4 changed files with 11 additions and 8 deletions

View File

@@ -97,12 +97,14 @@ local function dropOff()
inv = turtle.getSummedInventory()
for _, slot in pairs(inv) do
if slot.count >= 16 then
if slot.count >= 16 or turtle.getSlot(8).count > 0 then
local chests = findChests()
for c in Point.iterateClosest(turtle.point, chests) do
if turtle.dropDownAt(c, slot.name) then
chest = c
break
if slot.name ~= 'plethora:module' then
if turtle.dropDownAt(c, slot.name) then
chest = c
break
end
end
end
end