mirror of
https://github.com/LDDestroier/CC/
synced 2025-07-25 21:32:55 +00:00
Update tron.lua
This commit is contained in:
parent
2bd56706e4
commit
869a8b29d3
6
tron.lua
6
tron.lua
@ -250,7 +250,8 @@ if argumentName then
|
|||||||
end
|
end
|
||||||
|
|
||||||
local modem, skynet
|
local modem, skynet
|
||||||
if useSkynet then
|
if not doGridDemo then
|
||||||
|
if useSkynet then
|
||||||
if fs.exists(skynetPath) then
|
if fs.exists(skynetPath) then
|
||||||
skynet = dofile(skynetPath)
|
skynet = dofile(skynetPath)
|
||||||
skynet.open(port)
|
skynet.open(port)
|
||||||
@ -266,7 +267,7 @@ if useSkynet then
|
|||||||
error("Could not download Skynet.")
|
error("Could not download Skynet.")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
modem = peripheral.find("modem")
|
modem = peripheral.find("modem")
|
||||||
if (not modem) and ccemux then
|
if (not modem) and ccemux then
|
||||||
ccemux.attach("top", "wireless_modem")
|
ccemux.attach("top", "wireless_modem")
|
||||||
@ -277,6 +278,7 @@ else
|
|||||||
else
|
else
|
||||||
error("You should attach a modem.")
|
error("You should attach a modem.")
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local transmit = function(port, message)
|
local transmit = function(port, message)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user