3 Commits

Author SHA1 Message Date
66347e148c Merge remote-tracking branch 'upstream/master' into nalc-1.2-dev 2020-06-20 15:48:20 +02:00
3f62fd3cf1 Declare the minimum supported Minetest version to 5.0.0
This information can be used by ContentDB.
2020-06-03 18:54:47 +02:00
f42e7883b4 Corrige crash au démarrage
À cause du merge précédent mal fait.
2020-02-29 19:31:06 +01:00
2 changed files with 14 additions and 5 deletions

View File

@ -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

View File

@ -2,3 +2,4 @@ name = moreores
description = Adds new ore types. description = Adds new ore types.
depends = default depends = default
optional_depends = carts,farming,frame,mg,toolranks optional_depends = carts,farming,frame,mg,toolranks
min_minetest_version = 5.0.0