forked from VoxeLibre/VoxeLibre
Don't apply wear to creative fishing rod
This commit is contained in:
parent
989f29fae6
commit
67f0eae19c
|
@ -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
|
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=""})
|
inv:add_item("main", {name=itemname, count=1, wear=0, metadata=""})
|
||||||
end
|
end
|
||||||
|
if not minetest.setting_get("creative_mode") then
|
||||||
itemstack:add_wear(66000/65) -- 65 uses
|
itemstack:add_wear(66000/65) -- 65 uses
|
||||||
|
end
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue