From 02e431b39c2fe8f876ab391c63b77133c8855505 Mon Sep 17 00:00:00 2001 From: Mark Lemming Date: Sat, 22 Dec 2012 16:11:41 -0700 Subject: [PATCH] Exclude asteroids from chain recalculations. --- lib/Lacuna/RPC/Building/BlackHoleGenerator.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Lacuna/RPC/Building/BlackHoleGenerator.pm b/lib/Lacuna/RPC/Building/BlackHoleGenerator.pm index 1db8416f..b72d69eb 100644 --- a/lib/Lacuna/RPC/Building/BlackHoleGenerator.pm +++ b/lib/Lacuna/RPC/Building/BlackHoleGenerator.pm @@ -809,7 +809,10 @@ sub bhg_move_system { push @orbiting, $return; } for my $bod (@recalcs) { - $bod->recalc_chains; # We need to redo all the chains of the moved planets in one go. +# We need to redo all the chains of the moved planets in one go. + if ($bod->empire and $bod->get_type ne 'asteroid') { + $bod->recalc_chains; + } } return { id => $target_star->id, -- 2.51.2