k2 wafer deadlock fix

This commit is contained in:
Brevven 2021-03-19 23:12:54 -07:00
parent 54e165f8fa
commit 1d3e9fffaf
5 changed files with 14 additions and 2 deletions

View file

@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 0.6.4
Date: 2021-03-15
Fixes:
- Fix tech deadlock in K2 with intermediates on (type SiliconRecipes)
---------------------------------------------------------------------------------------------------
Version: 0.6.3
Date: 2021-03-14
Features:

View file

@ -7,6 +7,9 @@ script.on_event( defines.events.on_console_chat, function(event)
if game.players[event.player_index].force.recipes["solar-cell"] then
game.players[event.player_index].force.recipes["solar-cell"].enabled=true
end
if game.players[event.player_index].force.recipes["hydrogen-chloride"] then
game.players[event.player_index].force.recipes["hydrogen-chloride"].enabled=true
end
end
end)

View file

@ -1,6 +1,6 @@
{
"name": "bzsilicon",
"version": "0.6.3",
"version": "0.6.4",
"factorio_version": "1.1",
"title": "Silica & Silicon",
"author": "Brevven",

View file

@ -139,4 +139,6 @@ data:extend({
result_count = 2,
},
})
util.add_effect("kr-fluids-chemistry", {type="unlock-recipe", recipe="hydrogen-chloride"})
end

View file

@ -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