fix: Add debug logging for current position during status broadcast

This commit is contained in:
MayaTheShy
2026-02-19 23:43:48 -05:00
parent 43bba2ced7
commit 6da6a06295

View File

@@ -414,6 +414,14 @@ function broadcastStatus()
-- Don't update position on every broadcast to avoid GPS delays
-- Position will be updated by movement functions
-- Debug: Log current position
if state.position then
print(string.format("Broadcasting position: X=%d Y=%d Z=%d",
state.position.x, state.position.y, state.position.z))
else
print("Broadcasting with NO POSITION (waiting for GPS)")
end
-- Scan surrounding blocks for map visualization
local surroundings = {}
local hasBlock, data