Skip to content

Commit

Permalink
Update for 0.207.20
Browse files Browse the repository at this point in the history
  • Loading branch information
nxPublic committed Mar 1, 2022
1 parent ba62c2f commit d05a560
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ValheimPlus/GameClasses/Chat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace ValheimPlus.GameClasses
/// <summary>
/// Change Ping and global message behavior
/// </summary>
[HarmonyPatch(typeof(Chat), nameof(Chat.OnNewChatMessage))]
[HarmonyPatch(typeof(Chat), nameof(Chat.OnNewChatMessage), new System.Type[] { typeof(GameObject), typeof(long), typeof(Vector3), typeof(Talker.Type), typeof(string), typeof(string) })]
public static class Chat_AddInworldText_Patch
{
private static bool Prefix(ref Chat __instance, GameObject go, long senderID, Vector3 pos, Talker.Type type, string user, string text)
Expand Down Expand Up @@ -68,7 +68,7 @@ private static bool Prefix(ref Chat __instance, GameObject go, long senderID, Ve



[HarmonyPatch(typeof(Chat), nameof(Chat.AddInworldText))]
[HarmonyPatch(typeof(Chat), nameof(Chat.AddInworldText), new System.Type[] { typeof(GameObject), typeof(long), typeof(Vector3), typeof(Talker.Type), typeof(string), typeof(string) })]
public static class Chat_AddInworldText_Transpiler
{
/// <summary>
Expand All @@ -88,6 +88,8 @@ public static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructio

}


/* should no longer be required since 00.207.20
[HarmonyPatch(typeof(Chat), nameof(Chat.AddString))]
public static class Chat_AddString_Transpiler
{
Expand All @@ -106,7 +108,7 @@ public static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructio
}
}
}*/



Expand Down

0 comments on commit d05a560

Please sign in to comment.