storage refactor - void option
This commit is contained in:
@@ -12,9 +12,9 @@ function PotionImportTask:cycle(context)
|
||||
if v.type == 'minecraft:brewing_stand' and v.getBrewTime() == 0 then
|
||||
local list = v.list()
|
||||
if not list[4] then
|
||||
for i = 1, 3 do
|
||||
if list[i] then
|
||||
context.inventoryAdapter:insert(i, 1, nil, list[i], v.name)
|
||||
for slot = 1, 3 do
|
||||
if list[slot] then
|
||||
context.storage:import(v.name, slot, 1, list[slot])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user