Skip to content

Commit

Permalink
Fix Display Names for Construction Site Deaths
Browse files Browse the repository at this point in the history
- Fixes display names to match structure name for construction site deaths
  • Loading branch information
data-bomb committed Sep 14, 2024
1 parent 93658b9 commit 1d2b43c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Si_AntiGrief/Si_AntiGrief.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]

Expand Down Expand Up @@ -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('('))
Expand Down
4 changes: 2 additions & 2 deletions Si_Logging/Si_Logging.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]

Expand Down Expand Up @@ -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('('))
Expand Down

0 comments on commit 1d2b43c

Please sign in to comment.