forked from cacklingfiend/bzaluminum2
se recipe
This commit is contained in:
parent
30ee082ab0
commit
ce4a3f267b
4 changed files with 8 additions and 2 deletions
|
|
@ -70,7 +70,7 @@ end
|
|||
function util.remove_prerequisite(technology_name, prerequisite)
|
||||
local technology = data.raw.technology[technology_name]
|
||||
local index = -1
|
||||
if technology and data.raw.technology[prerequisite] then
|
||||
if technology then
|
||||
for i, prereq in pairs(technology.prerequisites) do
|
||||
if prereq == prerequisite then
|
||||
index = i
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue