From b61b0cdac66e569c980f252d17c5cd1164d2f280 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 14 Mar 2020 17:54:53 +0000 Subject: [PATCH] Add wear when throwing grapple hook --- mods/pvp/shooter/grapple.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/pvp/shooter/grapple.lua b/mods/pvp/shooter/grapple.lua index 2bf62f8..d0011ec 100644 --- a/mods/pvp/shooter/grapple.lua +++ b/mods/pvp/shooter/grapple.lua @@ -74,6 +74,7 @@ minetest.register_tool("shooter:grapple_hook", { if pointed_thing.type ~= "nothing" then return itemstack end + itemstack:add_wear(65536 / 16) throw_hook(itemstack, user, 14) return "" end,