summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginManager.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-03-30 13:44:28 +0200
committerSTRWarrior <niels.breuker@hotmail.nl>2014-03-30 13:44:28 +0200
commit47d5395d24c6f209a758a689bff9a44f68d7397b (patch)
treea9a99b813b5badb1c5568d2441bf1092744a45eb /src/Bindings/PluginManager.cpp
parentFixed the OnProjectileHitBlock hook not stopping projectiles. (diff)
downloadcuberite-47d5395d24c6f209a758a689bff9a44f68d7397b.tar
cuberite-47d5395d24c6f209a758a689bff9a44f68d7397b.tar.gz
cuberite-47d5395d24c6f209a758a689bff9a44f68d7397b.tar.bz2
cuberite-47d5395d24c6f209a758a689bff9a44f68d7397b.tar.lz
cuberite-47d5395d24c6f209a758a689bff9a44f68d7397b.tar.xz
cuberite-47d5395d24c6f209a758a689bff9a44f68d7397b.tar.zst
cuberite-47d5395d24c6f209a758a689bff9a44f68d7397b.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 6a5356c0b..7116a5826 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)
+bool cPluginManager::CallHookProjectileHitBlock(cProjectileEntity & a_Projectile, eBlockFace a_Face)
{
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))
+ if ((*itr)->OnProjectileHitBlock(a_Projectile, a_Face))
{
return true;
}