summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-12-22 16:03:11 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-12-22 16:03:11 +0100
commit318dc76fc9b71a87309078823d1cd457e852157e (patch)
treed9d33dcab4ec307dc9f084d3f15af5d5439d6b5a /src
parentFixed signedness warning in cItemGrid. (diff)
downloadcuberite-318dc76fc9b71a87309078823d1cd457e852157e.tar
cuberite-318dc76fc9b71a87309078823d1cd457e852157e.tar.gz
cuberite-318dc76fc9b71a87309078823d1cd457e852157e.tar.bz2
cuberite-318dc76fc9b71a87309078823d1cd457e852157e.tar.lz
cuberite-318dc76fc9b71a87309078823d1cd457e852157e.tar.xz
cuberite-318dc76fc9b71a87309078823d1cd457e852157e.tar.zst
cuberite-318dc76fc9b71a87309078823d1cd457e852157e.zip
Diffstat (limited to 'src')
-rw-r--r--src/Items/ItemFishingRod.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Items/ItemFishingRod.h b/src/Items/ItemFishingRod.h
index 0cb9fc654..a427b1676 100644
--- a/src/Items/ItemFishingRod.h
+++ b/src/Items/ItemFishingRod.h
@@ -180,7 +180,7 @@ public:
}
else
{
- cFloater * Floater = new cFloater(a_Player->GetPosX(), a_Player->GetStance(), a_Player->GetPosZ(), a_Player->GetLookVector() * 15, a_Player->GetUniqueID(), 100 + a_World->GetTickRandomNumber(800)); // TODO: for each lure level do 100 ticks less.
+ cFloater * Floater = new cFloater(a_Player->GetPosX(), a_Player->GetStance(), a_Player->GetPosZ(), a_Player->GetLookVector() * 15, a_Player->GetUniqueID(), 100 + a_World->GetTickRandomNumber(800) - (a_Player->GetEquippedItem().m_Enchantments.GetLevel(cEnchantments::enchLure) * 100));
Floater->Initialize(a_World);
a_Player->SetIsFishing(true, Floater->GetUniqueID());
}