mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 13:53:45 +01:00
Fix fishing rod having infinite durability
This commit is contained in:
parent
d8fe6a2661
commit
f652d5ecb5
@ -76,8 +76,8 @@ local go_fishing = function(itemstack, user, pointed_thing)
|
|||||||
if inv:room_for_item("main", item) then
|
if inv:room_for_item("main", item) then
|
||||||
inv:add_item("main", item)
|
inv:add_item("main", item)
|
||||||
end
|
end
|
||||||
if not minetest.setting_get("creative_mode") then
|
if not minetest.setting_getbool("creative_mode") then
|
||||||
itemstack:add_wear(66000/65) -- 65 uses
|
itemstack:add_wear(65535/65) -- 65 uses
|
||||||
end
|
end
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user