mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 09:31:07 +01:00
Fix fishing rod having infinite durability
This commit is contained in:
parent
d8fe6a2661
commit
f652d5ecb5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue