Use add_wear_by_uses for flint and steel

This commit is contained in:
Wuzzy 2022-08-16 00:17:54 +02:00
parent 177a9b7605
commit 8e0fb69127

View File

@ -884,7 +884,7 @@ minetest.register_tool(
end
if wear and not minetest.is_creative_enabled(user:get_player_name()) then
itemstack:add_wear(800)
itemstack:add_wear_by_uses(81)
end
return itemstack