Skip to content

Commit

Permalink
Fix Text Issue for Construction Sites vs Structures
Browse files Browse the repository at this point in the history
- Fixes logical issue when logging whether a construction site or structure was destroyed
  • Loading branch information
data-bomb committed Sep 14, 2024
1 parent 4178ad7 commit 93658b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Si_Logging/Si_Logging.cs
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ public static void Postfix(Target __0, GameObject __1)

if (Pref_Log_PlayerConsole_Enable.Value)
{
string ConsoleLine = "<b>" + HelperMethods.GetTeamColor(attackerPlayer) + attackerPlayer.PlayerName + "</color></b> destroyed a " + (__0.OwnerConstructionSite == null ? "construction site" : "structure") + "(" + HelperMethods.GetTeamColor(__0.Team) + structName + "</color>)";
string ConsoleLine = "<b>" + HelperMethods.GetTeamColor(attackerPlayer) + attackerPlayer.PlayerName + "</color></b> destroyed a " + (__0.OwnerConstructionSite == null ? "structure" : "construction site") + "(" + HelperMethods.GetTeamColor(__0.Team) + structName + "</color>)";
HelperMethods.SendConsoleMessageToTeam(attackerPlayer.Team, ConsoleLine);
}
}
Expand Down

0 comments on commit 93658b9

Please sign in to comment.