mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-20 01:46:19 +00:00
fixes
This commit is contained in:
1 parent
4c3b5b99e3
commit
564daf522b
2 files changed
+15
No files matched your search
@@ -123,6 +123,7 @@ class ChatPatch
|
||||
ChatBubble pooledBubble = __instance.GetPooledBubble();
|
||||
try
|
||||
{
|
||||
chatText = chatText.Replace("\n", "");
|
||||
pooledBubble.transform.SetParent(__instance.scroller.Inner);
|
||||
pooledBubble.transform.localScale = Vector3.one;
|
||||
bool flag = sourcePlayer == PlayerControl.LocalPlayer;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using AmongUs.Data;
|
||||
using HarmonyLib;
|
||||
using Hazel;
|
||||
using Il2CppSystem.Linq;
|
||||
using LibCpp2IL;
|
||||
using System.Text;
|
||||
@@ -218,6 +219,19 @@ class PlayerControlPatch
|
||||
}
|
||||
}
|
||||
|
||||
[HarmonyPatch(nameof(PlayerControl.SetColor))]
|
||||
[HarmonyPostfix]
|
||||
public static void SetColor_Postfix()
|
||||
{
|
||||
if (Main.BetterHost.Value && GameStates.IsLobby)
|
||||
{
|
||||
_ = new LateTask(() =>
|
||||
{
|
||||
RPC.SyncAllNames(force: true);
|
||||
}, 0.25f, shoudLog: false);
|
||||
}
|
||||
}
|
||||
|
||||
[HarmonyPatch(nameof(PlayerControl.MurderPlayer))]
|
||||
[HarmonyPostfix]
|
||||
public static void MurderPlayer_Postfix(PlayerControl __instance, [HarmonyArgument(0)] PlayerControl target)
|
||||
|
||||
Reference in new issue
Block a user