summaryrefslogtreecommitdiffstats
path: root/src/Entities/ProjectileEntity.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-05-31 14:14:55 +0200
committerSTRWarrior <niels.breuker@hotmail.nl>2014-05-31 14:14:55 +0200
commitd1b23060ada3946d68453e381867861bc768999b (patch)
treec239f6924c5f9d3fb0515b411ae50b18544392aa /src/Entities/ProjectileEntity.cpp
parentUsing recommendations (I think) (diff)
downloadcuberite-d1b23060ada3946d68453e381867861bc768999b.tar
cuberite-d1b23060ada3946d68453e381867861bc768999b.tar.gz
cuberite-d1b23060ada3946d68453e381867861bc768999b.tar.bz2
cuberite-d1b23060ada3946d68453e381867861bc768999b.tar.lz
cuberite-d1b23060ada3946d68453e381867861bc768999b.tar.xz
cuberite-d1b23060ada3946d68453e381867861bc768999b.tar.zst
cuberite-d1b23060ada3946d68453e381867861bc768999b.zip
Diffstat (limited to 'src/Entities/ProjectileEntity.cpp')
-rw-r--r--src/Entities/ProjectileEntity.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Entities/ProjectileEntity.cpp b/src/Entities/ProjectileEntity.cpp
index 7a869a957..acb10539d 100644
--- a/src/Entities/ProjectileEntity.cpp
+++ b/src/Entities/ProjectileEntity.cpp
@@ -68,8 +68,7 @@ protected:
if (bb.CalcLineIntersection(Line1, Line2, LineCoeff, Face))
{
Vector3d Intersection = Line1 + m_Projectile->GetSpeed() * LineCoeff;
- const Vector3i BlockHitPos = Vector3i(Intersection);
- if (cPluginManager::Get()->CallHookProjectileHitBlock(*m_Projectile, Face, &BlockHitPos))
+ if (cPluginManager::Get()->CallHookProjectileHitBlock(*m_Projectile, a_BlockX, a_BlockY, a_BlockZ, Face, &Intersection))
{
return false;
}