ui improvements + wireless modem over wired network

This commit is contained in:
kepler155c@gmail.com
2018-10-23 03:05:47 -04:00
parent 0cd709a525
commit a59fef30f0
2 changed files with 87 additions and 29 deletions

View File

@@ -55,7 +55,13 @@ function Peripheral.addDevice(deviceList, side)
end
-- this can randomly fail
pcall(function() deviceList[name] = Peripheral.wrap(side) end)
pcall(function()
deviceList[name] = Peripheral.wrap(side)
if ptype == 'wireless_modem' and not deviceList.wireless_modem then
-- TODO: fix this
deviceList.wireless_modem = deviceList[name]
end
end)
if deviceList[name] then
Util.merge(deviceList[name], {