summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index ad51679..c7a78c0 100644
--- a/init.lua
+++ b/init.lua
@@ -204,7 +204,7 @@ local function add_ore(modname, description, mineral_name, oredef)
if toolname == "hoe" then
tdef.description = S("%s Hoe"):format(S(description))
- local uses = tooldef.uses
+ local uses = tdef.uses
tdef.uses = nil
tdef.on_use = function(itemstack, user, pointed_thing)
return hoe_on_use(itemstack, user, pointed_thing, uses)