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

This commit is contained in:
2026-02-27 13:17:09 +08:00
parent a05aaac1b5
commit d3711e77e2
3 changed files with 8 additions and 3 deletions

Binary file not shown.

Binary file not shown.

View File

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