mirror of
https://github.com/minetest-mods/moreores.git
synced 2024-12-22 13:52:25 +01:00
Pass material to hoe registration (#48)
This commit is contained in:
parent
fb2d58d8c8
commit
c142b47539
1
init.lua
1
init.lua
@ -216,6 +216,7 @@ local function add_ore(modname, description, mineral_name, oredef)
|
||||
|
||||
if tool_name == "hoe" and minetest.get_modpath("farming") then
|
||||
tdef.max_uses = tooldef.max_uses
|
||||
tdef.material = ingot
|
||||
tdef.description = S("@1 Hoe", S(description))
|
||||
farming.register_hoe(fulltool_name, tdef)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user