1
0
Fork 0

Don't apply wear to creative fishing rod

objects
Wuzzy 2017-02-01 15:33:25 +01:00
parent 989f29fae6
commit 67f0eae19c
1 changed files with 3 additions and 1 deletions

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