mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 12:31:05 +01:00
Don't apply wear to creative fishing rod
This commit is contained in:
parent
989f29fae6
commit
67f0eae19c
1 changed files with 3 additions and 1 deletions
|
@ -78,7 +78,9 @@ minetest.register_tool("mcl_fishing:fishing_rod", {
|
|||
if inv:room_for_item("main", {name=itemname, count=1, wear=0, metadata=""}) then
|
||||
inv:add_item("main", {name=itemname, count=1, wear=0, metadata=""})
|
||||
end
|
||||
itemstack:add_wear(66000/65) -- 65 uses
|
||||
if not minetest.setting_get("creative_mode") then
|
||||
itemstack:add_wear(66000/65) -- 65 uses
|
||||
end
|
||||
return itemstack
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue