mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-24 03:47:58 +02:00
fix: all silos should die, not just one
This commit is contained in:
parent
2b1055dfec
commit
a170a05bc9
@ -1626,8 +1626,13 @@ local function event_on_rocket_launched(event)
|
||||
Quest.try_resolve_quest()
|
||||
end
|
||||
|
||||
if destination.dynamic_data.rocketsilos and destination.dynamic_data.rocketsilos[1] and destination.dynamic_data.rocketsilos[1].valid then
|
||||
destination.dynamic_data.rocketsilos[1].die()
|
||||
if destination.dynamic_data.rocketsilos then
|
||||
for i = 1, #destination.dynamic_data.rocketsilos do
|
||||
local s = destination.dynamic_data.rocketsilos[i]
|
||||
if s and s.valid then
|
||||
s.die()
|
||||
end
|
||||
end
|
||||
destination.dynamic_data.rocketsilos = nil
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user