fix angels crash

This commit is contained in:
Brevven 2021-03-13 03:24:56 -08:00
parent bb6814e056
commit 6c17287ba4
4 changed files with 13 additions and 6 deletions

View file

@ -1,4 +1,9 @@
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 0.6.2
Date: 2021-03-13
Fixes:
- Fix Crash with angels mods
---------------------------------------------------------------------------------------------------
Version: 0.6.1 Version: 0.6.1
Date: 2021-03-13 Date: 2021-03-13
Fixes: Fixes:

View file

@ -2,8 +2,10 @@ require("recipe-updates")
require("recipes/silicon-vulcanite") require("recipes/silicon-vulcanite")
if data.raw.resource["stone"] then
local noise = require('noise'); local noise = require('noise');
-- Increase richness of stone a bit -- Increase richness of stone a bit
data.raw.resource["stone"].autoplace.richness_expression = data.raw.resource["stone"].autoplace.richness_expression =
data.raw.resource["stone"].autoplace.richness_expression * noise.to_noise_expression(4/3) data.raw.resource["stone"].autoplace.richness_expression * noise.to_noise_expression(4/3)
end

View file

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

View file

@ -127,7 +127,7 @@ data:extend({
subgroup = "intermediate-product", subgroup = "intermediate-product",
enabled = false, enabled = false,
energy_required = 2, energy_required = 2,
ingredients = (mods["bzlead"] and { ingredients = (mods["bzlead"] and not mods["angelssmelting"] and {
{type= "item", name="silicon", amount=2}, {type= "item", name="silicon", amount=2},
{type= "item", name="electronic-circuit", amount=1}, {type= "item", name="electronic-circuit", amount=1},
{type= "item", name="lead-plate", amount=1}, {type= "item", name="lead-plate", amount=1},