mirror of
https://github.com/kepler155c/opus
synced 2024-11-05 16:36:16 +00:00
14 lines
207 B
Lua
14 lines
207 B
Lua
if _G.device then
|
|
return
|
|
end
|
|
|
|
requireInjector(getfenv(1))
|
|
|
|
local Peripheral = require('peripheral')
|
|
|
|
_G.device = { }
|
|
|
|
for _,side in pairs(peripheral.getNames()) do
|
|
Peripheral.addDevice(device, side)
|
|
end
|