This commit is contained in:
kmyuhkyuk 2022-11-07 10:17:07 +08:00
parent 6021aa664c
commit 87b4bef91f

View File

@ -9,7 +9,12 @@ namespace SkinHide.Patches
{
public class PlayerPatch : ModulePatch
{
private static bool? Is231Up;
private static bool Is231Up;
static PlayerPatch()
{
Is231Up = typeof(Player).GetProperty("IsYourPlayer").GetSetMethod() == null;
}
protected override MethodBase GetTargetMethod()
{
@ -21,11 +26,6 @@ namespace SkinHide.Patches
{
await __result;
if (!Is231Up.HasValue)
{
Is231Up = typeof(Player).GetProperty("IsYourPlayer").GetSetMethod() == null;
}
bool isYouPlayer;
if ((bool)Is231Up)