From 5ed534369159c3355abdd3a3374515e19b198101 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Sat, 17 Dec 2022 21:46:14 +0100 Subject: [PATCH] Added more methods. --- itemscript.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/itemscript.lua b/itemscript.lua index de5f219..4ec60de 100644 --- a/itemscript.lua +++ b/itemscript.lua @@ -76,11 +76,15 @@ function itemscript.dropAllDown(name, fuzzy) end function itemscript.dropAllUp(name, fuzzy) - dropFiltered(name, fuzzy or false, t.dropDown, itemMatchesFilter) + dropFiltered(name, fuzzy or false, t.dropUp, itemMatchesFilter) end function itemscript.dropAllExcept(name, fuzzy) - dropFiltered(name, fuzzy or false, t.drop, itemMatchesFilter) + dropFiltered(name, fuzzy or false, t.drop, itemNotMatchesFilter) +end + +function itemscript.dropAllDownExcept(name, fuzzy) + dropFiltered(name, fuzzy or false, t.dropDown, itemNotMatchesFilter) end -- Cleans up the turtle's inventory by compacting all stacks of items.