Browse Source

Corrige crash au démarrage

À cause du merge précédent mal fait.
tags/nalc-1.2.0
sys4 5 months ago
parent
commit
f42e7883b4
1 changed files with 13 additions and 5 deletions
  1. +13
    -5
      init.lua

+ 13
- 5
init.lua View File

@@ -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…
Cancel
Save