k2 wafer deadlock fix
This commit is contained in:
parent
54e165f8fa
commit
1d3e9fffaf
5 changed files with 14 additions and 2 deletions
4
util.lua
4
util.lua
|
|
@ -34,7 +34,9 @@ end
|
|||
-- Add a prerequisite to a given technology
|
||||
function util.add_prerequisite(technology_name, prerequisite)
|
||||
technology = data.raw.technology[technology_name]
|
||||
table.insert(technology.prerequisites, prerequisite)
|
||||
if technology then
|
||||
table.insert(technology.prerequisites, prerequisite)
|
||||
end
|
||||
end
|
||||
|
||||
-- Add a given quantity of ingredient to a given recipe
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue