mirror of
https://github.com/kepler155c/opus
synced 2024-12-28 01:20:27 +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
|