From 93658b9f9271154c90d1f40c9d5636a2efe28094 Mon Sep 17 00:00:00 2001 From: data-bomb Date: Sat, 14 Sep 2024 15:55:40 -0700 Subject: [PATCH] Fix Text Issue for Construction Sites vs Structures - Fixes logical issue when logging whether a construction site or structure was destroyed --- Si_Logging/Si_Logging.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Si_Logging/Si_Logging.cs b/Si_Logging/Si_Logging.cs index ddd6ef9..75b4204 100644 --- a/Si_Logging/Si_Logging.cs +++ b/Si_Logging/Si_Logging.cs @@ -699,7 +699,7 @@ public static void Postfix(Target __0, GameObject __1) if (Pref_Log_PlayerConsole_Enable.Value) { - string ConsoleLine = "" + HelperMethods.GetTeamColor(attackerPlayer) + attackerPlayer.PlayerName + " destroyed a " + (__0.OwnerConstructionSite == null ? "construction site" : "structure") + "(" + HelperMethods.GetTeamColor(__0.Team) + structName + ")"; + string ConsoleLine = "" + HelperMethods.GetTeamColor(attackerPlayer) + attackerPlayer.PlayerName + " destroyed a " + (__0.OwnerConstructionSite == null ? "structure" : "construction site") + "(" + HelperMethods.GetTeamColor(__0.Team) + structName + ")"; HelperMethods.SendConsoleMessageToTeam(attackerPlayer.Team, ConsoleLine); } }