mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-20 01:46:19 +00:00
Fix level 0
This commit is contained in:
1 parent
1123fce7e4
commit
ddf9bef470
1 file changed
+16
@@ -84,6 +84,22 @@ public class ClientPatch
|
||||
}
|
||||
}
|
||||
}
|
||||
[HarmonyPatch(typeof(NetworkedPlayerInfo))]
|
||||
public class NetworkedPlayerInfoPatch
|
||||
{
|
||||
[HarmonyPatch(nameof(NetworkedPlayerInfo.Deserialize))]
|
||||
[HarmonyPostfix]
|
||||
public static void Deserialize_Postfix(NetworkedPlayerInfo __instance)
|
||||
{
|
||||
if (!GameStates.IsHost)
|
||||
{
|
||||
if (__instance.PlayerLevel == unchecked((uint)0 - 1))
|
||||
{
|
||||
__instance.PlayerLevel = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// Set text color
|
||||
[HarmonyPatch(typeof(CosmeticsLayer))]
|
||||
public class CosmeticsLayerPatch
|
||||
|
||||
Reference in new issue
Block a user