Fix fishing rod having infinite durability

This commit is contained in:
Wuzzy 2017-02-17 22:39:56 +01:00
parent d8fe6a2661
commit f652d5ecb5
1 changed files with 2 additions and 2 deletions

View File

@ -76,8 +76,8 @@ local go_fishing = function(itemstack, user, pointed_thing)
if inv:room_for_item("main", item) then
inv:add_item("main", item)
end
if not minetest.setting_get("creative_mode") then
itemstack:add_wear(66000/65) -- 65 uses
if not minetest.setting_getbool("creative_mode") then
itemstack:add_wear(65535/65) -- 65 uses
end
return itemstack
end