1
0
mirror of https://github.com/kepler155c/opus synced 2025-02-10 22:10:02 +00:00
opus/sys/extensions/device.lua

14 lines
207 B
Lua
Raw Normal View History

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