mirror of
https://github.com/LDDestroier/CC/
synced 2025-02-07 14:40:03 +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
|
||||
|
||||
local modem, skynet
|
||||
if useSkynet then
|
||||
if not doGridDemo then
|
||||
if useSkynet then
|
||||
if fs.exists(skynetPath) then
|
||||
skynet = dofile(skynetPath)
|
||||
skynet.open(port)
|
||||
@ -266,7 +267,7 @@ if useSkynet then
|
||||
error("Could not download Skynet.")
|
||||
end
|
||||
end
|
||||
else
|
||||
else
|
||||
modem = peripheral.find("modem")
|
||||
if (not modem) and ccemux then
|
||||
ccemux.attach("top", "wireless_modem")
|
||||
@ -277,6 +278,7 @@ else
|
||||
else
|
||||
error("You should attach a modem.")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local transmit = function(port, message)
|
||||
|
Loading…
x
Reference in New Issue
Block a user