Update
This commit is contained in:
parent
6021aa664c
commit
87b4bef91f
@ -9,7 +9,12 @@ namespace SkinHide.Patches
|
|||||||
{
|
{
|
||||||
public class PlayerPatch : ModulePatch
|
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()
|
protected override MethodBase GetTargetMethod()
|
||||||
{
|
{
|
||||||
@ -21,11 +26,6 @@ namespace SkinHide.Patches
|
|||||||
{
|
{
|
||||||
await __result;
|
await __result;
|
||||||
|
|
||||||
if (!Is231Up.HasValue)
|
|
||||||
{
|
|
||||||
Is231Up = typeof(Player).GetProperty("IsYourPlayer").GetSetMethod() == null;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool isYouPlayer;
|
bool isYouPlayer;
|
||||||
|
|
||||||
if ((bool)Is231Up)
|
if ((bool)Is231Up)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user