summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginManager.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-05-31 14:14:55 +0200
committerSTRWarrior <niels.breuker@hotmail.nl>2014-05-31 14:14:55 +0200
commitd1b23060ada3946d68453e381867861bc768999b (patch)
treec239f6924c5f9d3fb0515b411ae50b18544392aa /src/Bindings/PluginManager.cpp
parentUsing recommendations (I think) (diff)
downloadcuberite-d1b23060ada3946d68453e381867861bc768999b.tar
cuberite-d1b23060ada3946d68453e381867861bc768999b.tar.gz
cuberite-d1b23060ada3946d68453e381867861bc768999b.tar.bz2
cuberite-d1b23060ada3946d68453e381867861bc768999b.tar.lz
cuberite-d1b23060ada3946d68453e381867861bc768999b.tar.xz
cuberite-d1b23060ada3946d68453e381867861bc768999b.tar.zst
cuberite-d1b23060ada3946d68453e381867861bc768999b.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 a5c904a77..066616c2a 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, const Vector3i * a_BlockHitPos)
+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())
@@ -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, a_BlockHitPos))
+ if ((*itr)->OnProjectileHitBlock(a_Projectile, a_BlockX, a_BlockY, a_BlockZ, a_Face, a_BlockHitPos))
{
return true;
}