refactor: update player position handling to include label for improved tracking

This commit is contained in:
MayaTheShy
2026-02-20 04:31:53 -05:00
parent 720c6c20fb
commit 8f23aa5caa

View File

@@ -356,8 +356,8 @@ local function handlePocketMessage(message)
elseif message.type == "player_position" then
addLog("Pocket #" .. pocketID .. " GPS", colors.cyan)
if not wsSend({ type = "player_update", playerID = message.playerID, position = message.position }) then
httpPost("/api/player/update", { playerID = message.playerID, position = message.position, timestamp = message.timestamp })
if not wsSend({ type = "player_update", playerID = message.playerID, position = message.position, label = message.label }) then
httpPost("/api/player/update", { playerID = message.playerID, position = message.position, label = message.label, timestamp = message.timestamp })
end
elseif message.type == "server_stats_request" then