diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-03-30 14:04:44 +0200 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-03-30 14:04:44 +0200 |
commit | 66f1bb7b677324dd59265b7b0776490caa661bcc (patch) | |
tree | 41fbf36434266a765dc14d58f20ae3fe7715b272 /src/Entities | |
parent | Added a blockface parameter to the OnProjectileHitBlock hook. (diff) | |
download | cuberite-66f1bb7b677324dd59265b7b0776490caa661bcc.tar cuberite-66f1bb7b677324dd59265b7b0776490caa661bcc.tar.gz cuberite-66f1bb7b677324dd59265b7b0776490caa661bcc.tar.bz2 cuberite-66f1bb7b677324dd59265b7b0776490caa661bcc.tar.lz cuberite-66f1bb7b677324dd59265b7b0776490caa661bcc.tar.xz cuberite-66f1bb7b677324dd59265b7b0776490caa661bcc.tar.zst cuberite-66f1bb7b677324dd59265b7b0776490caa661bcc.zip |
Diffstat (limited to 'src/Entities')
-rw-r--r-- | src/Entities/ProjectileEntity.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/ProjectileEntity.cpp b/src/Entities/ProjectileEntity.cpp index 37964d102..72ebf5775 100644 --- a/src/Entities/ProjectileEntity.cpp +++ b/src/Entities/ProjectileEntity.cpp @@ -67,12 +67,12 @@ protected: eBlockFace Face; if (bb.CalcLineIntersection(Line1, Line2, LineCoeff, Face)) { - if (cPluginManager::Get()->CallHookProjectileHitBlock(*m_Projectile, Face)) + Vector3d Intersection = Line1 + m_Projectile->GetSpeed() * LineCoeff; + if (cPluginManager::Get()->CallHookProjectileHitBlock(*m_Projectile, Face, &Intersection)) { return false; } - Vector3d Intersection = Line1 + m_Projectile->GetSpeed() * LineCoeff; m_Projectile->OnHitSolidBlock(Intersection, Face); return true; } |