From f7ffe019967c682a41ff5837132a754b73644475 Mon Sep 17 00:00:00 2001 From: Brevven Date: Sat, 1 May 2021 00:34:54 -0700 Subject: [PATCH] fix equipment --- titanium-recipe-updates.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/titanium-recipe-updates.lua b/titanium-recipe-updates.lua index 14822cb..8f9ded5 100644 --- a/titanium-recipe-updates.lua +++ b/titanium-recipe-updates.lua @@ -3,7 +3,7 @@ local util = require("__bztitanium__.data-util"); if (not mods["bobplates"]) then - util.replace_ingredient("power-armor", "steel", "titanium") + util.steel_to_titanium("power-armor") util.add_prerequisite("power-armor", util.titanium_processing) -- Generally, steel-based equipment techs require solar panel tech, so only require @@ -14,7 +14,7 @@ if (not mods["bobplates"]) then -- All equipment that uses steel now uses titanium. Who wants to carry around steel! for name, recipe in pairs(data.raw.recipe) do if recipe.result ~= nil and recipe.result:find("equipment") then - util.steel_to_titanium(recipe) + util.steel_to_titanium(recipe.name) end end end