diff options
author | Wuzzy <wuzzy2@mail.ru> | 2021-10-31 22:33:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-31 22:33:33 +0000 |
commit | 6910c8d920acedb3f1df1ac03a5cdf14f5fb6081 (patch) | |
tree | ae01925fc35e2301a87ec53897f96b1f56c955fb /builtin/game | |
parent | 38ba813c55489595cd78ab2f952be2e954083cfa (diff) | |
download | minetest-6910c8d920acedb3f1df1ac03a5cdf14f5fb6081.tar.gz minetest-6910c8d920acedb3f1df1ac03a5cdf14f5fb6081.tar.bz2 minetest-6910c8d920acedb3f1df1ac03a5cdf14f5fb6081.zip |
Fix number of tool uses being off by 1..32767 (#11110)
Diffstat (limited to 'builtin/game')
-rw-r--r-- | builtin/game/item.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/game/item.lua b/builtin/game/item.lua index 039947584..c9ccb8801 100644 --- a/builtin/game/item.lua +++ b/builtin/game/item.lua @@ -613,7 +613,7 @@ function core.node_dig(pos, node, digger) if wielded then local wdef = wielded:get_definition() local tp = wielded:get_tool_capabilities() - local dp = core.get_dig_params(def and def.groups, tp) + local dp = core.get_dig_params(def and def.groups, tp, wielded:get_wear()) if wdef and wdef.after_use then wielded = wdef.after_use(wielded, digger, node, dp) or wielded else |