Propagate update_flight event in '_instant_relocate' instead

Dropped the ball here, and pretty hard too...
This commit is contained in:
Raffson
2023-01-13 21:17:33 +01:00
parent 7bae6cd562
commit 0a3a56d4bc
2 changed files with 3 additions and 4 deletions

View File

@@ -270,11 +270,7 @@ class Flight(SidcDescribable):
results.kill_pilot(self, pilot)
def recreate_flight_plan(self) -> None:
from game.sim.gameupdateevents import GameUpdateEvents
from game.server import EventStream
self._flight_plan_builder.regenerate()
EventStream.put_nowait(GameUpdateEvents().update_flight(self))
@staticmethod
def clone_flight(flight: Flight) -> Flight: