Corrige crash au démarrage

À cause du merge précédent mal fait.
This commit is contained in:
Sys Quatre 2020-02-29 19:31:06 +01:00
parent 20b0c60227
commit f42e7883b4
1 changed files with 13 additions and 5 deletions

View File

@ -216,11 +216,19 @@ local function add_ore(modname, description, mineral_name, oredef)
farming.register_hoe(fulltool_name, tdef) farming.register_hoe(fulltool_name, tdef)
end end
if oredef.makes.ingot then -- Hoe registration is handled above.
minetest.register_craft({ -- There are no crafting recipes for hoes, as they have been
output = fulltool_name, -- deprecated from Minetest Game:
recipe = get_recipe(ingot, tool_name) -- 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 end
-- Toolranks support -- Toolranks support