milo tweaks + cloud catcher
This commit is contained in:
@@ -133,15 +133,17 @@ Event.onInterval(5, function()
|
||||
end
|
||||
|
||||
if empty then
|
||||
for k,v in pairs(inv) do
|
||||
local item = itemDB:get(v, function() ni.getInventory().getItemMeta(k) end)
|
||||
if item then
|
||||
if context.state.autostore[makeKey(item)] then
|
||||
ni.getInventory().pushItems(target, k, v.count, slot)
|
||||
break
|
||||
pcall(function() -- prevent errors from some mod items
|
||||
for k,v in pairs(inv) do
|
||||
local item = itemDB:get(v, function() ni.getInventory().getItemMeta(k) end)
|
||||
if item then
|
||||
if context.state.autostore[makeKey(item)] then
|
||||
ni.getInventory().pushItems(target, k, v.count, slot)
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local Sound = require('sound')
|
||||
local Sound = require('sound')
|
||||
|
||||
local args = { ... }
|
||||
local args = { ... }
|
||||
local context = args[1]
|
||||
|
||||
local function learn()
|
||||
@@ -19,7 +19,7 @@ context.responseHandlers['craft'] = function(response)
|
||||
end
|
||||
|
||||
return {
|
||||
menuItem = 'Learn Recipe',
|
||||
menuItem = 'Learn recipe',
|
||||
callback = function()
|
||||
learn()
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user