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
8
init.lua
8
init.lua
@ -216,12 +216,20 @@ local function add_ore(modname, description, mineral_name, oredef)
|
|||||||
farming.register_hoe(fulltool_name, tdef)
|
farming.register_hoe(fulltool_name, tdef)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- 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
|
if oredef.makes.ingot then
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = fulltool_name,
|
output = fulltool_name,
|
||||||
recipe = get_recipe(ingot, tool_name)
|
recipe = get_recipe(ingot, tool_name)
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- Toolranks support
|
-- Toolranks support
|
||||||
if minetest.get_modpath("toolranks") then
|
if minetest.get_modpath("toolranks") then
|
||||||
|
Loading…
Reference in New Issue
Block a user