summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginManager.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-06-01 20:10:03 +0200
committerMattes D <github@xoft.cz>2014-06-01 20:10:03 +0200
commit61edb83ce54b3d50693b4c313f85602d889a9a0d (patch)
treeb367e6851fe03a062b49bd0bce8f9fddfafe964a /src/Bindings/PluginManager.cpp
parentabort does not take a parameter. (diff)
parentMade a_BlockHitPos a reference (diff)
downloadcuberite-61edb83ce54b3d50693b4c313f85602d889a9a0d.tar
cuberite-61edb83ce54b3d50693b4c313f85602d889a9a0d.tar.gz
cuberite-61edb83ce54b3d50693b4c313f85602d889a9a0d.tar.bz2
cuberite-61edb83ce54b3d50693b4c313f85602d889a9a0d.tar.lz
cuberite-61edb83ce54b3d50693b4c313f85602d889a9a0d.tar.xz
cuberite-61edb83ce54b3d50693b4c313f85602d889a9a0d.tar.zst
cuberite-61edb83ce54b3d50693b4c313f85602d889a9a0d.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 fc690d4de..acfc91bf8 100644
--- a/src/Bindings/PluginManager.cpp
+++ b/src/Bindings/PluginManager.cpp
@@ -1155,7 +1155,7 @@ bool cPluginManager::CallHookPreCrafting(const cPlayer * a_Player, const cCrafti
-bool cPluginManager::CallHookProjectileHitBlock(cProjectileEntity & a_Projectile)
+bool cPluginManager::CallHookProjectileHitBlock(cProjectileEntity & a_Projectile, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Face, const Vector3d & a_BlockHitPos)
{
HookMap::iterator Plugins = m_Hooks.find(HOOK_PROJECTILE_HIT_BLOCK);
if (Plugins == m_Hooks.end())
@@ -1164,7 +1164,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_BlockX, a_BlockY, a_BlockZ, a_Face, a_BlockHitPos))
{
return true;
}