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,6 +159,7 @@ if settings.startup["017-techtree"].value then
|
|||
for _, tech in pairs(data.raw["technology"]) do
|
||||
if tech.effects then
|
||||
for i=1, #tech.effects do
|
||||
if tech.effects[i].type then
|
||||
if tech.effects[i].type == "unlock-recipe" then
|
||||
whitelisted = true
|
||||
break
|
||||
|
@ -166,6 +167,7 @@ if settings.startup["017-techtree"].value then
|
|||
whitelisted = false
|
||||
end
|
||||
end
|
||||
end
|
||||
if whitelisted == true then
|
||||
local valid = compare(tech, "logistics-science-pack", "science-pack-2")
|
||||
if valid == false then
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "017_science",
|
||||
"version": "0.0.13",
|
||||
"version": "0.0.14",
|
||||
"factorio_version": "0.16",
|
||||
"title": "0.17 science conversion",
|
||||
"author": "npc_strider(morley376)",
|
||||
|
|
Loading…
Reference in New Issue
Block a user