summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginManager.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-03-30 14:04:44 +0200
committerSTRWarrior <niels.breuker@hotmail.nl>2014-03-30 14:04:44 +0200
commit66f1bb7b677324dd59265b7b0776490caa661bcc (patch)
tree41fbf36434266a765dc14d58f20ae3fe7715b272 /src/Bindings/PluginManager.cpp
parentAdded a blockface parameter to the OnProjectileHitBlock hook. (diff)
downloadcuberite-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/Bindings/PluginManager.cpp')
-rw-r--r--src/Bindings/PluginManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Bindings/PluginManager.cpp b/src/Bindings/PluginManager.cpp
index 7116a5826..0aa52e97e 100644
--- a/src/Bindings/PluginManager.cpp
+++ b/src/Bindings/PluginManager.cpp
@@ -1154,7 +1154,7 @@ bool cPluginManager::CallHookPreCrafting(const cPlayer * a_Player, const cCrafti
-bool cPluginManager::CallHookProjectileHitBlock(cProjectileEntity & a_Projectile, eBlockFace a_Face)
+bool cPluginManager::CallHookProjectileHitBlock(cProjectileEntity & a_Projectile, eBlockFace a_Face, Vector3d * a_BlockHitPos)
{
HookMap::iterator Plugins = m_Hooks.find(HOOK_PROJECTILE_HIT_BLOCK);
if (Plugins == m_Hooks.end())
@@ -1163,7 +1163,7 @@ bool cPluginManager::CallHookProjectileHitBlock(cProjectileEntity & a_Projectile
}
for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr)
{
- if ((*itr)->OnProjectileHitBlock(a_Projectile, a_Face))
+ if ((*itr)->OnProjectileHitBlock(a_Projectile, a_Face, a_BlockHitPos))
{
return true;
}