diff --git a/init.lua b/init.lua index 89f4977..dc9a189 100644 --- a/init.lua +++ b/init.lua @@ -216,11 +216,19 @@ local function add_ore(modname, description, mineral_name, oredef) farming.register_hoe(fulltool_name, tdef) end - if oredef.makes.ingot then - minetest.register_craft({ - output = fulltool_name, - recipe = get_recipe(ingot, tool_name) - }) + -- Hoe registration is handled above. + -- There are no crafting recipes for hoes, as they have been + -- deprecated from Minetest Game: + -- https://github.com/minetest/minetest_game/commit/9c459e77a + if tool_name ~= "hoe" then + minetest.register_tool(fulltool_name, tdef) + + if oredef.makes.ingot then + minetest.register_craft({ + output = fulltool_name, + recipe = get_recipe(ingot, tool_name) + }) + end end -- Toolranks support