Fix crash when the on_rocket_launched event doesn't have a rocket_silo
This commit is contained in:
parent
81214f2a46
commit
f8671cf738
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ end
|
|||
|
||||
|
||||
ToNauvis.events[defines.events.on_rocket_launched] = function(event)
|
||||
if event.rocket_silo.name ~= "provisional-rocket-silo" then return end
|
||||
if not event.rocket_silo or event.rocket_silo.name ~= "provisional-rocket-silo" then return end
|
||||
|
||||
local rocket_entry
|
||||
local rocket_entry_index
|
||||
|
|
Loading…
Add table
Reference in a new issue