milo: lock chest with multiple items

This commit is contained in:
kepler155c
2018-11-13 17:18:55 -05:00
parent 6870378422
commit 16c56aa092
3 changed files with 90 additions and 68 deletions

View File

@@ -40,6 +40,15 @@ if config.remoteDefaults then
config.remoteDefaults = nil
end
-- TODO: remove - temporary
for _, node in pairs(config.nodes) do
if node.lock and type(node.lock) == 'string' then
node.lock = {
[ node.lock ] = true,
}
end
end
local modem = Peripheral.get('wired_modem')
if not modem or not modem.getNameLocal then
error('Wired modem is not connected')