fix(flight): ForceLand when shouldBeFlying is false, fixes flying when undrafted or standing still
This commit is contained in:
Binary file not shown.
@@ -78,11 +78,16 @@ namespace WulaFallenEmpire
|
|||||||
shouldBeFlying = true;
|
shouldBeFlying = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (shouldBeFlying && !__instance.Flying)
|
if (shouldBeFlying)
|
||||||
{
|
{
|
||||||
__instance.StartFlying();
|
if (!__instance.Flying) __instance.StartFlying();
|
||||||
|
job.flying = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (__instance.Flying) __instance.ForceLand();
|
||||||
|
job.flying = false;
|
||||||
}
|
}
|
||||||
job.flying = shouldBeFlying;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user