1
0
mirror of https://github.com/LDDestroier/CC/ synced 2025-11-09 20:03:01 +00:00

Update tron.lua

This commit is contained in:
LDDestroier
2019-02-28 23:49:50 -05:00
committed by GitHub
parent 2bd56706e4
commit 869a8b29d3

View File

@@ -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)