1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-06-28 04:40:22 +02:00

Use add_wear_by_uses to fix incorrect uses counts (#2959)

This commit is contained in:
Wuzzy
2022-06-04 16:43:21 +00:00
committed by GitHub
parent b4392aeb1f
commit d7dd15782c
4 changed files with 4 additions and 4 deletions

View File

@ -108,7 +108,7 @@ minetest.register_tool("fireflies:bug_net", {
end
end
if not minetest.is_creative_enabled(player_name) then
itemstack:add_wear(256)
itemstack:add_wear_by_uses(256)
return itemstack
end
end