diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-03-30 14:04:44 +0200 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-03-30 14:04:44 +0200 |
commit | 66f1bb7b677324dd59265b7b0776490caa661bcc (patch) | |
tree | 41fbf36434266a765dc14d58f20ae3fe7715b272 /src/Bindings/PluginManager.cpp | |
parent | Added a blockface parameter to the OnProjectileHitBlock hook. (diff) | |
download | cuberite-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 '')
-rw-r--r-- | src/Bindings/PluginManager.cpp | 4 |
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; } |