mirror of
https://github.com/peter-tanner/017-science-transition-mod.git
synced 2024-11-30 11:00:19 +08:00
another science-gen fix
This commit is contained in:
parent
53020fe27c
commit
0e51848fcd
|
@ -159,11 +159,13 @@ if settings.startup["017-techtree"].value then
|
||||||
for _, tech in pairs(data.raw["technology"]) do
|
for _, tech in pairs(data.raw["technology"]) do
|
||||||
if tech.effects then
|
if tech.effects then
|
||||||
for i=1, #tech.effects do
|
for i=1, #tech.effects do
|
||||||
if tech.effects[i].type == "unlock-recipe" then
|
if tech.effects[i].type then
|
||||||
whitelisted = true
|
if tech.effects[i].type == "unlock-recipe" then
|
||||||
break
|
whitelisted = true
|
||||||
else
|
break
|
||||||
whitelisted = false
|
else
|
||||||
|
whitelisted = false
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if whitelisted == true then
|
if whitelisted == true then
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "017_science",
|
"name": "017_science",
|
||||||
"version": "0.0.13",
|
"version": "0.0.14",
|
||||||
"factorio_version": "0.16",
|
"factorio_version": "0.16",
|
||||||
"title": "0.17 science conversion",
|
"title": "0.17 science conversion",
|
||||||
"author": "npc_strider(morley376)",
|
"author": "npc_strider(morley376)",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user