From cfca4304c01bef48e2c582a6b1dfa940dd824541 Mon Sep 17 00:00:00 2001 From: Awkanimus Date: Fri, 23 Dec 2022 23:07:08 -0500 Subject: [PATCH 1/2] Fix tome edge-case when node_name is not found. --- elepower_tome/i_functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elepower_tome/i_functions.lua b/elepower_tome/i_functions.lua index 3c10a7a..17b285f 100644 --- a/elepower_tome/i_functions.lua +++ b/elepower_tome/i_functions.lua @@ -238,7 +238,7 @@ function eletome.gen_craft_grid(recipe,y_off,no_items) -- handle when recipe includes groups if string.find(recipe.items[x_cnt],"group") then local grp_name = string.gsub(recipe.items[x_cnt],"group:","") - local node_name + local node_name = "UNKNOWN" for name,def in pairs(minetest.registered_nodes) do if def.groups[grp_name] and not def.groups["wall"] then node_name = name From 88d40fb89d0c95608ef5607800fb438ac4f8745c Mon Sep 17 00:00:00 2001 From: Awkanimus Date: Mon, 9 Jan 2023 19:01:13 -0500 Subject: [PATCH 2/2] Fix acidic compound creation when right clicking water --- elepower_dynamics/craftitems.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elepower_dynamics/craftitems.lua b/elepower_dynamics/craftitems.lua index a74fc28..b89ab70 100644 --- a/elepower_dynamics/craftitems.lua +++ b/elepower_dynamics/craftitems.lua @@ -193,7 +193,7 @@ minetest.register_craftitem("elepower_dynamics:acidic_compound", { local pos = pointed_thing.under local node = minetest.get_node(pos) - if node.name ~= epi.water_source then + if node.name ~= epr.water_source then return itemstack end