made the network safer
This commit is contained in:
@@ -41,7 +41,7 @@ if radio and modem then
|
|||||||
local data = {os.pullEvent()}
|
local data = {os.pullEvent()}
|
||||||
if data[1] == "radio_message" then
|
if data[1] == "radio_message" then
|
||||||
data[3] = textutils.unserialise(data[3])
|
data[3] = textutils.unserialise(data[3])
|
||||||
if data[3]._target == os.getComputerID() or data[3]._target == nil then return data[2], data[3], data[4] end
|
if data[3]._target == os.getComputerID() or data[3]._target == nil and data[4] < 2611 then return data[2], data[3], data[4] end
|
||||||
elseif data[1] == "modem_message" then
|
elseif data[1] == "modem_message" then
|
||||||
if data[5]._target == os.getComputerID() or data[5]._target == nil then return data[2], data[5], data[6] end
|
if data[5]._target == os.getComputerID() or data[5]._target == nil then return data[2], data[5], data[6] end
|
||||||
end
|
end
|
||||||
@@ -61,7 +61,7 @@ elseif radio then
|
|||||||
while true do
|
while true do
|
||||||
local data = {os.pullEvent("radio_message")}
|
local data = {os.pullEvent("radio_message")}
|
||||||
data[3] = textutils.unserialise(data[3])
|
data[3] = textutils.unserialise(data[3])
|
||||||
if data[3]._target == os.getComputerID() or data[3]._target == nil then return data[2], data[3], data[4] end
|
if data[3]._target == os.getComputerID() or data[3]._target == nil and data[4] < 2611 then return data[2], data[3], data[4] end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
function interactions.send(message,target)
|
function interactions.send(message,target)
|
||||||
|
|||||||
Reference in New Issue
Block a user