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:
parent
fc9981bff0
commit
daed3aac38
@ -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], {
|
||||
|
Loading…
Reference in New Issue
Block a user