diff --git a/lib/Lacuna/DB/Result/Ships.pm b/lib/Lacuna/DB/Result/Ships.pm index 43186842..dd25047a 100644 --- a/lib/Lacuna/DB/Result/Ships.pm +++ b/lib/Lacuna/DB/Result/Ships.pm @@ -94,12 +94,11 @@ sub arrive { # no exceptions, so we either need to go home or land if ($self->direction eq 'out') { - $self->turn_around; + $self->turn_around->update; } else { - $self->land; + $self->land->update; } - $self->update; } sub handle_arrival_procedures { @@ -240,14 +239,6 @@ sub land { - - - - - - - - # DISTANCE diff --git a/lib/Lacuna/Web/Admin.pm b/lib/Lacuna/Web/Admin.pm index 5b723420..fff99a5a 100644 --- a/lib/Lacuna/Web/Admin.pm +++ b/lib/Lacuna/Web/Admin.pm @@ -311,8 +311,9 @@ sub www_view_ships { sub www_zoom_ship { my ($self, $request) = @_; my $ship = Lacuna->db->resultset('Lacuna::DB::Result::Ships')->find($request->param('ship_id')); + my $body = $ship->body; $ship->update({date_available => DateTime->now}); - $ship->body->tick; + $body->tick; return $self->www_view_ships($request); } diff --git a/var/www/public/changes.txt b/var/www/public/changes.txt index 258b861e..ef313fe4 100644 --- a/var/www/public/changes.txt +++ b/var/www/public/changes.txt @@ -1,5 +1,6 @@ 2.4000 - Fixed bug where some spy missions would return invalid JSON. + - Fixed: Halls of Vrbanks get_upgradable_buildings was returning wrong URLs. - Refactored ship classes. - Scows are no longer expendable if used to dump waste into a star. - Scows no longer have a 0 hold size if you have no Trade Ministry, however the Trade Ministry helps them greatly.