1
0
mirror of https://github.com/kepler155c/opus synced 2024-12-24 15:40:26 +00:00

1.7.10 compatibility

This commit is contained in:
kepler155c@gmail.com 2018-02-24 09:38:02 -05:00
parent fc9981bff0
commit daed3aac38

View File

@ -54,11 +54,8 @@ function Peripheral.addDevice(deviceList, side)
name = uniqueName
end
local s, m = pcall(function() deviceList[name] = Peripheral.wrap(side) end)
if not s and m then
_G.printError('wrap failed')
_G.printError(m)
end
-- this can randomly fail
pcall(function() deviceList[name] = Peripheral.wrap(side) end)
if deviceList[name] then
Util.merge(deviceList[name], {