milo tweaks + cloud catcher

This commit is contained in:
kepler155c@gmail.com
2019-01-23 15:30:14 -05:00
parent 4276ea533f
commit 1de92f153f
4 changed files with 17 additions and 39 deletions

View File

@@ -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)

View File

@@ -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,