From 1c56aa9223d5fed001058c3f5f39f975d589c1c9 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Fri, 13 Oct 2023 23:48:04 +0900 Subject: [PATCH] 1 decimal place on last location gps --- modules/commands/last-location.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/commands/last-location.lua b/modules/commands/last-location.lua index b020efc4..44763a17 100644 --- a/modules/commands/last-location.lua +++ b/modules/commands/last-location.lua @@ -15,5 +15,5 @@ Commands.new_command('last-location', 'Sends you the last location of a player') :add_param('player', false, 'player') :register(function(player, action_player) local action_player_name_color = format_chat_player_name(action_player) - player.print{'expcom-lastlocation.response', action_player_name_color, action_player.position.x, action_player.position.y} -end) \ No newline at end of file + player.print{'expcom-lastlocation.response', action_player_name_color, string.format('%.1f', action_player.position.x), string.format('%.1f', action_player.position.y)} +end)