From 1d2b43c321b60f8d3c7ee3ca3a4371b16cfd2120 Mon Sep 17 00:00:00 2001 From: data-bomb Date: Sat, 14 Sep 2024 16:12:31 -0700 Subject: [PATCH] Fix Display Names for Construction Site Deaths - Fixes display names to match structure name for construction site deaths --- Si_AntiGrief/Si_AntiGrief.cs | 4 ++-- Si_Logging/Si_Logging.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Si_AntiGrief/Si_AntiGrief.cs b/Si_AntiGrief/Si_AntiGrief.cs index 825e7ce..fcef029 100644 --- a/Si_AntiGrief/Si_AntiGrief.cs +++ b/Si_AntiGrief/Si_AntiGrief.cs @@ -35,7 +35,7 @@ You should have received a copy of the GNU General Public License using System.Linq; using UnityEngine; -[assembly: MelonInfo(typeof(AntiGrief), "Anti-Grief", "1.3.4", "databomb", "https://github.com/data-bomb/Silica")] +[assembly: MelonInfo(typeof(AntiGrief), "Anti-Grief", "1.3.5", "databomb", "https://github.com/data-bomb/Silica")] [assembly: MelonGame("Bohemia Interactive", "Silica")] [assembly: MelonOptionalDependencies("Admin Mod")] @@ -394,7 +394,7 @@ private static string GetDisplayName(Target target) } else { - return target.ToString().Split('_')[1]; + return target.ToString().Split('_')[1].Split('(')[0]; } } else if (target.ToString().Contains('(')) diff --git a/Si_Logging/Si_Logging.cs b/Si_Logging/Si_Logging.cs index 75b4204..d49c7ee 100644 --- a/Si_Logging/Si_Logging.cs +++ b/Si_Logging/Si_Logging.cs @@ -44,7 +44,7 @@ You should have received a copy of the GNU General Public License using System.Text; using System.Runtime.CompilerServices; -[assembly: MelonInfo(typeof(HL_Logging), "Half-Life Logger", "1.4.11", "databomb&zawedcvg", "https://github.com/data-bomb/Silica")] +[assembly: MelonInfo(typeof(HL_Logging), "Half-Life Logger", "1.4.12", "databomb&zawedcvg", "https://github.com/data-bomb/Silica")] [assembly: MelonGame("Bohemia Interactive", "Silica")] [assembly: MelonOptionalDependencies("Admin Mod")] @@ -682,7 +682,7 @@ public static void Postfix(Target __0, GameObject __1) } else { - structName = __0.ToString().Split('_')[1]; + structName = __0.ToString().Split('_')[1].Split('(')[0]; } } else if (__0.ToString().Contains('('))