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('('))