diff --git a/turtle.lua b/turtle.lua index e92495b..04c42ed 100644 --- a/turtle.lua +++ b/turtle.lua @@ -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