diff --git a/changelog.txt b/changelog.txt index 871243d..3cd37a2 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 3.0.41 +Date: ??? + Changes: + - Fix crash in YAFC from smart farms having a field renamed +--------------------------------------------------------------------------------------------------- Version: 3.0.40 Date: 2025-12-28 Changes: diff --git a/info.json b/info.json index 5d2a18e..2fa7b45 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "pypostprocessing", - "version": "3.0.40", + "version": "3.0.41", "factorio_version": "2.0", "title": "Pyanodons Post-processing", "author": "Pyanodon, Shadowglass, LambdaLemon", diff --git a/prototypes/yafc.lua b/prototypes/yafc.lua index 23eea7d..64ced9e 100644 --- a/prototypes/yafc.lua +++ b/prototypes/yafc.lua @@ -37,7 +37,7 @@ if mods["pyalienlife"] then local fluid = FLUID { type = "fluid", name = fluid_name, - localised_name = {"", "Smart farming with ", {"item-name." .. farm.seed}}, + localised_name = {"", "Smart farming with ", {"item-name." .. farm.name}}, icon = resource.icon, icon_size = resource.icon_size, default_temperature = 15, @@ -51,7 +51,7 @@ if mods["pyalienlife"] then for _, recipe_data in ipairs(farm.recipes) do local recipe = RECIPE(recipe_data.recipe_name) - recipe:add_ingredient {name = farm.seed, amount = 1, type = "item"} + recipe:add_ingredient {name = farm.name, amount = 1, type = "item"} recipe.results[1] = {type = "fluid", name = fluid_name, amount = math.floor(recipe_data.crop_output) * 529} end end