1
0
mirror of https://github.com/kepler155c/opus synced 2024-12-28 17:40:26 +00:00
opus/sys/extensions/device.lua

14 lines
207 B
Lua
Raw Normal View History

2017-09-06 01:21:43 +00:00
if _G.device then
return
end
requireInjector(getfenv(1))
2016-12-11 19:24:52 +00:00
local Peripheral = require('peripheral')
_G.device = { }
2016-12-11 19:24:52 +00:00
for _,side in pairs(peripheral.getNames()) do
2017-04-01 23:21:49 +00:00
Peripheral.addDevice(device, side)
2016-12-11 19:24:52 +00:00
end