Update entrypointclient.lua
This commit is contained in:
@@ -46,7 +46,7 @@ local function receive()
|
||||
local _, _, channel, _, msg, distance = pullEvent("modem_message")
|
||||
if channel == 15125 then
|
||||
if msg.protocol == "entrypoint_advertise" then
|
||||
if distance < canidate.distance then
|
||||
if distance < canidate.distance and distance > (msg.max_distance or 128) then
|
||||
canidate.max_distance = msg.max_distance
|
||||
canidate.id = msg.sender
|
||||
canidate.distance = distance
|
||||
|
||||
Reference in New Issue
Block a user