1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-16 15:30:30 +01:00

Continue the pole_perfect code

This commit is contained in:
Ombridride 2015-03-11 16:49:42 +01:00
parent 3a96e2e34a
commit 42ed838804

View File

@ -125,7 +125,7 @@ minetest.register_tool("fishing:pole", {
end,
})
--Canne à pêche normal
--Canne à pêche parfaite
minetest.register_tool("fishing:pole_perfect", {
description = S("Perfect Fishing Pole"),
@ -155,7 +155,7 @@ minetest.register_tool("fishing:pole_perfect", {
and not minetest.setting_getbool("creative_mode") then
return rod_wear(itemstack, user, pointed_thing, 30)
else
return {name="fishing:pole", count=1, wear=0, metadata=""}
return {name="fishing:pole_perfect", count=1, wear=0, metadata=""}
end
end
if inv:get_stack("main", user:get_wield_index()+1):get_name() == "fishing:fish_raw" then
@ -172,7 +172,7 @@ minetest.register_tool("fishing:pole_perfect", {
and not minetest.setting_getbool("creative_mode") then
return rod_wear(itemstack, user, pointed_thing, 30)
else
return {name="fishing:pole", count=1, wear=0, metadata=""}
return {name="fishing:pole_perfect", count=1, wear=0, metadata=""}
end
end
end