summaryrefslogtreecommitdiffstats
path: root/src/Entities/ProjectileEntity.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-03-30 17:21:13 +0200
committerSTRWarrior <niels.breuker@hotmail.nl>2014-03-30 17:21:13 +0200
commit36e1e57d038eda0c183f616f2b45d2ae4733e27c (patch)
treefb5096339c5437e7fc435b7d730c29e36d5f010c /src/Entities/ProjectileEntity.cpp
parentAdded a BlockHitPos parameter to OnProjectileHitBlock (diff)
downloadcuberite-36e1e57d038eda0c183f616f2b45d2ae4733e27c.tar
cuberite-36e1e57d038eda0c183f616f2b45d2ae4733e27c.tar.gz
cuberite-36e1e57d038eda0c183f616f2b45d2ae4733e27c.tar.bz2
cuberite-36e1e57d038eda0c183f616f2b45d2ae4733e27c.tar.lz
cuberite-36e1e57d038eda0c183f616f2b45d2ae4733e27c.tar.xz
cuberite-36e1e57d038eda0c183f616f2b45d2ae4733e27c.tar.zst
cuberite-36e1e57d038eda0c183f616f2b45d2ae4733e27c.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/ProjectileEntity.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Entities/ProjectileEntity.cpp b/src/Entities/ProjectileEntity.cpp
index 72ebf5775..7a869a957 100644
--- a/src/Entities/ProjectileEntity.cpp
+++ b/src/Entities/ProjectileEntity.cpp
@@ -68,7 +68,8 @@ protected:
if (bb.CalcLineIntersection(Line1, Line2, LineCoeff, Face))
{
Vector3d Intersection = Line1 + m_Projectile->GetSpeed() * LineCoeff;
- if (cPluginManager::Get()->CallHookProjectileHitBlock(*m_Projectile, Face, &Intersection))
+ const Vector3i BlockHitPos = Vector3i(Intersection);
+ if (cPluginManager::Get()->CallHookProjectileHitBlock(*m_Projectile, Face, &BlockHitPos))
{
return false;
}