From c160a346218e35343353fefce392c4fab2093316 Mon Sep 17 00:00:00 2001 From: MAGGen Date: Sun, 26 Oct 2025 22:29:15 +0100 Subject: [PATCH] Returned wooden rail recipe from older mod version. Code copied and edited from here: https://github.com/TheSAguy/Bio_Industries/blob/6abb0414f5500bb1325883db77a4a4f19775414f/Bio_Industries/prototypes/Wood_Products/recipe.lua#L157 --- .../prototypes/Wood_Products/rail.lua | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Bio_Industries_2/prototypes/Wood_Products/rail.lua b/Bio_Industries_2/prototypes/Wood_Products/rail.lua index 97c7da1..1a5c1e5 100644 --- a/Bio_Industries_2/prototypes/Wood_Products/rail.lua +++ b/Bio_Industries_2/prototypes/Wood_Products/rail.lua @@ -40,6 +40,33 @@ local simulations = require("__base__.prototypes.factoriopedia-simulations") }, ---- Recipe + { + type = "recipe", + name = "bi-rail-wood", + localised_name = {"entity-name.bi-rail-wood"}, + localised_description = {"entity-description.bi-rail-wood"}, + icons = { { icon = ICONPATH_E .. "rail-wood.png", icon_size = 64, } }, + enabled = false, + ingredients = { + {type="item",name="wood",amount=6}, + {type="item",name="stone",amount=1}, + {type="item",name="steel-plate",amount=1}, + {type="item",name="iron-stick",amount=1}, + }, + results={{type="item",name="bi-rail-wood",amount=2}}, + main_product = "", + requester_paste_multiplier = 4, + --~ always_show_made_in = true, + --~ allow_decomposition = false, + allow_as_intermediate = false, -- Added for 0.18.34/1.1.4 + always_show_made_in = false, -- Changed for 0.18.34/1.1.4 + allow_decomposition = true, -- Changed for 0.18.34/1.1.4 + subgroup = "transport", + order = "a[train-system]-a[rail]", + -- This is a custom property for use by "Krastorio 2" (it will change + -- ingredients/results; used for wood/wood pulp) + mod = "Bio_Industries", + }, { type = "recipe", name = "bi-rail-wood-to-concrete",