fix: Add debug logging for current position during status broadcast
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user