forked from mtcontrib/farming
add hoe group to hoes
This commit is contained in:
parent
5decae8261
commit
c770314dda
4
hoes.lua
4
hoes.lua
@ -24,6 +24,10 @@ farming.register_hoe = function(name, def)
|
|||||||
def.max_uses = 30
|
def.max_uses = 30
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- add hoe group
|
||||||
|
def.groups = def.groups or {}
|
||||||
|
def.groups.hoe = 1
|
||||||
|
|
||||||
-- Register the tool
|
-- Register the tool
|
||||||
minetest.register_tool(name, {
|
minetest.register_tool(name, {
|
||||||
description = def.description,
|
description = def.description,
|
||||||
|
Loading…
Reference in New Issue
Block a user