fix(flight): ForceLand when shouldBeFlying is false, fixes flying when undrafted or standing still

This commit is contained in:
2026-02-27 13:16:55 +08:00
parent 121e742bd0
commit 8c991d6588
2 changed files with 8 additions and 3 deletions

View File

@@ -78,11 +78,16 @@ namespace WulaFallenEmpire
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;
}