2dp in gps display of message in decon log

This commit is contained in:
2023-09-25 14:24:44 +09:00
committed by GitHub
parent 40d409dabd
commit 90e6299510

View File

@@ -21,7 +21,7 @@ local function pos_to_string(pos)
end
local function pos_to_gps_string(pos)
return '[gps=' .. tostring(pos.x) .. ',' .. tostring(pos.y) .. ']'
return '[gps=' .. string.format('%.1f', pos.x) .. ',' .. string.format('%.1f', pos.y) .. ']'
end
--- Print a message to all players who match the value of admin