Skip to content

Commit

Permalink
Pass material to hoe registration (minetest-mods#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorskalyo authored Nov 20, 2022
1 parent fb2d58d commit c142b47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c142b47

Please sign in to comment.