1
0

Used recommendations

This commit is contained in:
STRWarrior
2014-05-31 14:14:55 +02:00
parent 36e1e57d03
commit d1b23060ad
6 changed files with 8 additions and 9 deletions

View File

@@ -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;
}