Skip to content

Commit

Permalink
fix ticket-0637
Browse files Browse the repository at this point in the history
  • Loading branch information
g5bot committed Jan 22, 2025
1 parent a0f3ce4 commit 4136670
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Module/Station/Action/Scrapping/Scrapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,13 @@ public function handle(GameControllerInterface $game): void
}

if ($station->getRump()->getCategoryId() === SpacecraftRumpEnum::SHIP_CATEGORY_CONSTRUCTION) {

$game->setView(ModuleViewEnum::STATION);

$progress = $station->getConstructionProgress();
if ($progress !== null) {
$this->constructionProgressRepository->delete($progress);
}
$this->spacecraftRemover->remove($station);
$game->addInformation(_('Konstrukt wurde entfernt'));
return;
Expand Down

0 comments on commit 4136670

Please sign in to comment.