Pass material to hoe registration (#48)

This commit is contained in:
taylorskalyo 2022-11-20 12:19:16 +00:00 committed by GitHub
parent fb2d58d8c8
commit c142b47539
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -216,6 +216,7 @@ local function add_ore(modname, description, mineral_name, oredef)
if tool_name == "hoe" and minetest.get_modpath("farming") then if tool_name == "hoe" and minetest.get_modpath("farming") then
tdef.max_uses = tooldef.max_uses tdef.max_uses = tooldef.max_uses
tdef.material = ingot
tdef.description = S("@1 Hoe", S(description)) tdef.description = S("@1 Hoe", S(description))
farming.register_hoe(fulltool_name, tdef) farming.register_hoe(fulltool_name, tdef)
end end