mirror of
https://github.com/rmroc451/TweaksAndThings.git
synced 2025-12-17 01:39:38 -06:00
16 lines
377 B
C#
16 lines
377 B
C#
using HarmonyLib;
|
|
|
|
namespace RMROC451.TweaksAndThings.Patches;
|
|
|
|
[HarmonyPatch(typeof(EntityReference))]
|
|
[HarmonyPatch(nameof(EntityReference.Text))]
|
|
[HarmonyPatchCategory("RMROC451TweaksAndThings")]
|
|
internal class EntityReference_Text_Patch
|
|
{
|
|
static void Postfix(ref string __result)
|
|
{
|
|
if (__result == "Unknown")
|
|
__result = string.Empty;
|
|
}
|
|
}
|