attack dropping modules
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user