mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2025-12-20 11:09:21 +01:00
17 lines
426 B
Lua
17 lines
426 B
Lua
|
|
_G.modem = component.proxy(component.list("modem")())
|
|
_G.inventory_controller = component.proxy(component.list("modem")())
|
|
_G.drone = component.proxy(component.list("drone")())
|
|
_G.port = 512
|
|
|
|
modem.open(port)
|
|
|
|
while true do
|
|
local e = {computer.pullSignal()}
|
|
if e[1] == "modem_message" then
|
|
if e[6] == "executeScript" then
|
|
modem.send(e[2], port, "executionResult", xpcall(load(e[7]), debug.traceback()))
|
|
end
|
|
end
|
|
end
|