From 35ff3e9f48623450cf8fadcb7ba20da1b7f18709 Mon Sep 17 00:00:00 2001 From: Michieal Date: Sat, 4 Feb 2023 16:31:18 -0500 Subject: [PATCH] further optimize and reformat mcl_honey's init.lua --- mods/ITEMS/mcl_honey/init.lua | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/mods/ITEMS/mcl_honey/init.lua b/mods/ITEMS/mcl_honey/init.lua index 6edcb1287..e4b403875 100644 --- a/mods/ITEMS/mcl_honey/init.lua +++ b/mods/ITEMS/mcl_honey/init.lua @@ -41,14 +41,9 @@ minetest.register_craftitem("mcl_honey:honeycomb", { end local node = minetest.get_node(pointed_thing.under) local pos = pointed_thing.under - local node_name = node.name - local def = minetest.registered_nodes[node_name] - - if def and def._mcl_copper_waxed_variant then - -- wax the copper block. - return mcl_honey.wax_block(pos, node, placer, itemstack) - end + -- wax the block. This is the only viable usage of honeycomb's on_place. If it "fails" to wax, then nothing is changed. + return mcl_honey.wax_block(pos, node, placer, itemstack) end, })