summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-12-21 20:42:43 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-12-21 20:42:43 +0100
commit76ff71810a4746eeeedc81365e925a3861af07f9 (patch)
tree2407db6fd4fb20a2694c42488a83fdd10658c49c
parentMerge pull request #460 from mc-server/Fishing_Items (diff)
downloadcuberite-76ff71810a4746eeeedc81365e925a3861af07f9.tar
cuberite-76ff71810a4746eeeedc81365e925a3861af07f9.tar.gz
cuberite-76ff71810a4746eeeedc81365e925a3861af07f9.tar.bz2
cuberite-76ff71810a4746eeeedc81365e925a3861af07f9.tar.lz
cuberite-76ff71810a4746eeeedc81365e925a3861af07f9.tar.xz
cuberite-76ff71810a4746eeeedc81365e925a3861af07f9.tar.zst
cuberite-76ff71810a4746eeeedc81365e925a3861af07f9.zip
-rw-r--r--src/Items/ItemFishingRod.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Items/ItemFishingRod.h b/src/Items/ItemFishingRod.h
index 80ff6cf1c..e941251b2 100644
--- a/src/Items/ItemFishingRod.h
+++ b/src/Items/ItemFishingRod.h
@@ -174,8 +174,8 @@ public:
Vector3d FloaterPos(Callbacks.GetPos());
- Vector3d FlyDirection(a_Player->GetPosition() - FloaterPos);
- a_World->SpawnItemPickups(Drops, FloaterPos.x, FloaterPos.y, FloaterPos.z, FlyDirection.x, FlyDirection.Length() / (FlyDirection.y * 2), FlyDirection.z);
+ Vector3d FlyDirection(a_Player->GetEyePosition() - FloaterPos);
+ a_World->SpawnItemPickups(Drops, FloaterPos.x, FloaterPos.y, FloaterPos.z, FlyDirection.x, FlyDirection.y + 1, FlyDirection.z);
}
}
else