From 0837b7d76682d32508b702823251a7b56da6c7db Mon Sep 17 00:00:00 2001 From: unknown <24964441+wsor4035@users.noreply.github.com> Date: Sun, 27 Feb 2022 11:30:27 -0500 Subject: [PATCH] refactor if statment --- crafts.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crafts.lua b/crafts.lua index dbc0a09..52dd255 100644 --- a/crafts.lua +++ b/crafts.lua @@ -75,10 +75,10 @@ elseif minetest.get_modpath("hades_core") then --set this to steel unless hadesextraores is present silver_ingot = "hades_core:steel_ingot", } -end -if minetest.get_modpath("hades_core") and minetest.get_modpath("hades_extraores") then - materials["silver_ingot"] = "hades_extraores:silver_ingot" + if minetest.get_modpath("hades_extraores") then + materials["silver_ingot"] = "hades_extraores:silver_ingot" + end end --craft recipes