1
0
mirror of https://github.com/kepler155c/opus synced 2025-12-19 22:58:06 +00:00

bit of everything

This commit is contained in:
kepler155c@gmail.com
2017-07-23 22:37:07 -04:00
parent 027f386ed1
commit f8bcf90a6b
30 changed files with 866 additions and 502 deletions

View File

@@ -50,7 +50,12 @@ function Peripheral.addDevice(deviceList, side)
name = uniqueName
end
deviceList[name] = peripheral.wrap(side)
local s, m pcall(function() deviceList[name] = peripheral.wrap(side) end)
if not s and m then
printError('wrap failed')
printError(m)
end
if deviceList[name] then
Util.merge(deviceList[name], {
name = name,