diff --git a/lib/Lacuna/DB/Result/Map/Body/Planet.pm b/lib/Lacuna/DB/Result/Map/Body/Planet.pm index 36afd0e3..07ca606e 100644 --- a/lib/Lacuna/DB/Result/Map/Body/Planet.pm +++ b/lib/Lacuna/DB/Result/Map/Body/Planet.pm @@ -748,6 +748,13 @@ sub found_colony { $type =~ s/^.*::(\w\d+)$/$1/; $empire->add_medal($type); + my $buildings = $self->buildings; + while (my $building = $buildings->next) { + if ($building->x == 0 and $building->y == 0) { + $building->delete; + } + } + # add command building my $command = Lacuna->db->resultset('Lacuna::DB::Result::Building')->new({ x => 0,