Don't apply wear to creative fishing rod

This commit is contained in:
Wuzzy 2017-02-01 15:33:25 +01:00
parent 989f29fae6
commit 67f0eae19c

View File

@ -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