From 3583a8bca7cf1cd581f37b7ce97cb5c8f13d2f49 Mon Sep 17 00:00:00 2001 From: LaurensScheldeman Date: Thu, 20 Aug 2020 16:07:56 +0200 Subject: [PATCH] fixed steel smelting 2 could not be researched without manganese present --- angelssmelting/changelog.txt | 2 ++ .../prototypes/override/smelting-override-alloy-steel.lua | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/angelssmelting/changelog.txt b/angelssmelting/changelog.txt index 729eab7c7..14e8b5595 100644 --- a/angelssmelting/changelog.txt +++ b/angelssmelting/changelog.txt @@ -4,6 +4,8 @@ Date: 20.08.2020 Changes: - Updated to base game 1.0 - Mold creation now use a resin dummy instead of the iron motor casing (356) + Bugfixes: + - Fixed steel smelting 2 could not be researched in some cases --------------------------------------------------------------------------------------------------- Version: 0.6.10 Date: 17.07.2020 diff --git a/angelssmelting/prototypes/override/smelting-override-alloy-steel.lua b/angelssmelting/prototypes/override/smelting-override-alloy-steel.lua index f2bb6ed3e..96829b05f 100644 --- a/angelssmelting/prototypes/override/smelting-override-alloy-steel.lua +++ b/angelssmelting/prototypes/override/smelting-override-alloy-steel.lua @@ -20,11 +20,13 @@ if angelsmods.trigger.smelting_products["steel"].ingot then ) end - if not angelsmods.trigger.smelting_products["silicon"] then + if (not angelsmods.trigger.smelting_products["silicon"] ) or + (not angelsmods.trigger.smelting_products["silicon"].ingot) then OV.remove_prereq("angels-steel-smelting-2", "angels-silicon-smelting-1") end - if not angelsmods.trigger.smelting_products["manganese"] then + if (not angelsmods.trigger.smelting_products["manganese"] ) or + (not angelsmods.trigger.smelting_products["manganese"].ingot) then OV.remove_prereq("angels-steel-smelting-2", "angels-manganese-smelting-1") end