forked from minetest-mods/moreores
Corrige crash au démarrage
À cause du merge précédent mal fait.
This commit is contained in:
parent
20b0c60227
commit
f42e7883b4
18
init.lua
18
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
|
||||
|
Loading…
Reference in New Issue
Block a user