diff --git a/changelog.txt b/changelog.txt index 912ef1d..2c8927f 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 0.6.2 +Date: 2021-03-13 + Fixes: + - Fix Crash with angels mods +--------------------------------------------------------------------------------------------------- Version: 0.6.1 Date: 2021-03-13 Fixes: diff --git a/data-updates.lua b/data-updates.lua index f293176..0b58764 100644 --- a/data-updates.lua +++ b/data-updates.lua @@ -2,8 +2,10 @@ require("recipe-updates") require("recipes/silicon-vulcanite") -local noise = require('noise'); --- Increase richness of stone a bit -data.raw.resource["stone"].autoplace.richness_expression = - data.raw.resource["stone"].autoplace.richness_expression * noise.to_noise_expression(4/3) +if data.raw.resource["stone"] then + local noise = require('noise'); + -- Increase richness of stone a bit + data.raw.resource["stone"].autoplace.richness_expression = + data.raw.resource["stone"].autoplace.richness_expression * noise.to_noise_expression(4/3) +end diff --git a/info.json b/info.json index 7c97672..e0307c2 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzsilicon", - "version": "0.6.1", + "version": "0.6.2", "factorio_version": "1.1", "title": "Silica & Silicon", "author": "Brevven", diff --git a/prototypes/silicon-recipe.lua b/prototypes/silicon-recipe.lua index d79a7c9..05c4f09 100644 --- a/prototypes/silicon-recipe.lua +++ b/prototypes/silicon-recipe.lua @@ -127,7 +127,7 @@ data:extend({ subgroup = "intermediate-product", enabled = false, energy_required = 2, - ingredients = (mods["bzlead"] and { + ingredients = (mods["bzlead"] and not mods["angelssmelting"] and { {type= "item", name="silicon", amount=2}, {type= "item", name="electronic-circuit", amount=1}, {type= "item", name="lead-plate", amount=1},