From 720c6c20fb56575b4ece3f88c867cce344403453 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Fri, 20 Feb 2026 04:31:47 -0500 Subject: [PATCH] refactor: enhance player position update to include label and timestamp for improved tracking --- pocketcontrol.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pocketcontrol.lua b/pocketcontrol.lua index ed90cb3..9766538 100644 --- a/pocketcontrol.lua +++ b/pocketcontrol.lua @@ -98,10 +98,10 @@ local function updateMyPosition() modem.transmit(POCKET_CHANNEL, CHANNEL_RECEIVE, { type = "player_position", playerID = os.getComputerID(), + label = os.getComputerLabel() or ("Pocket #" .. os.getComputerID()), position = myPosition, timestamp = os.epoch("utc") }) - addLog("GPS: " .. x .. "," .. y .. "," .. z, colors.lime) return true else addLog("GPS: Failed to locate", colors.red) @@ -556,7 +556,7 @@ parallel.waitForAny( function() -- GPS update loop while true do - sleep(5) + sleep(2) updateMyPosition() end end,