Fix level 0

This commit is contained in:
D1GQ committed 2024-09-13 13:22:38 -05:00
1 parent 1123fce7e4
commit ddf9bef470
1 file changed
+16
+16
View File
@@ -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