From 7257fd1ea662f70f22ea0133e1557df6db6fb223 Mon Sep 17 00:00:00 2001 From: RedRafe Date: Sat, 24 Jan 2026 11:18:01 +0100 Subject: [PATCH] Revert locale string for server print --- features/corpse_util.lua | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/features/corpse_util.lua b/features/corpse_util.lua index 729d6879a..7d8f3458b 100644 --- a/features/corpse_util.lua +++ b/features/corpse_util.lua @@ -92,7 +92,20 @@ local function mined_entity(event) local corpse_owner = game.get_player(corpse_owner_index) if player and corpse_owner then local position = entity.position - Utils.action_warning('[Corpse]', { 'corpse.looted', player.name, corpse_owner.name, position.x, position.y, entity.surface.name }) + local message = table.concat{ + player.name, + ' has looted ', + corpse_owner.name, + '\'s corpse.', + ' [gps=', + string.format('%.1f', position.x), + ',', + string.format('%.1f', position.y), + ',', + entity.surface.name, + ']' + } + Utils.action_warning('[Corpse]', message) end end @@ -123,7 +136,20 @@ local function on_gui_opened(event) local corpse_owner = game.get_player(corpse_owner_index) if player and corpse_owner then local position = entity.position - Utils.action_warning('[Corpse]', { 'corpse.looting', player.name, corpse_owner.name, position.x, position.y, entity.surface.name }) + local message = table.concat{ + player.name, + ' is looting ', + corpse_owner.name, + '\'s corpse.', + ' [gps=', + string.format('%.1f', position.x), + ',', + string.format('%.1f', position.y), + ',', + entity.surface.name, + ']' + } + Utils.action_warning('[Corpse]', message) end end