EndMeeting fixes

This commit is contained in:
D1GQ committed 2024-08-07 18:22:03 -05:00
1 parent ed38f84a1f
commit 688ce902a4
1 file changed
+13 -1
+13 -1
View File
@@ -1,9 +1,11 @@
using HarmonyLib;
using Hazel;
using System.Text;
using TMPro;
using UnityEngine;
namespace BetterAmongUs;
namespace BetterAmongUs;
[HarmonyPatch(typeof(MeetingHud), nameof(MeetingHud.Start))]
class MeetingHudStartPatch
{
@@ -165,4 +167,14 @@ class MeetingHudUpdatePatch
TextObj.GetComponent<TextMeshPro>().text = text;
}
}
}
[HarmonyPatch(typeof(MeetingHud), nameof(MeetingHud.OnDestroy))]
class MeetingHud_OnDestroyPatch
{
public static void Postfix()
{
Logger.LogHeader("Meeting Has Endded");
RPC.SyncAllNames(force: true);
}
}