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/PluginLua.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/PluginLua.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Bindings/PluginLua.cpp b/src/Bindings/PluginLua.cpp index 9e989a9e1..a89cfc82c 100644 --- a/src/Bindings/PluginLua.cpp +++ b/src/Bindings/PluginLua.cpp @@ -1108,14 +1108,14 @@ bool cPluginLua::OnPreCrafting(const cPlayer * a_Player, const cCraftingGrid * a -bool cPluginLua::OnProjectileHitBlock(cProjectileEntity & a_Projectile, eBlockFace a_Face) +bool cPluginLua::OnProjectileHitBlock(cProjectileEntity & a_Projectile, eBlockFace a_Face, Vector3d * a_BlockHitPos) { cCSLock Lock(m_CriticalSection); bool res = false; cLuaRefs & Refs = m_HookMap[cPluginManager::HOOK_PROJECTILE_HIT_BLOCK]; for (cLuaRefs::iterator itr = Refs.begin(), end = Refs.end(); itr != end; ++itr) { - m_LuaState.Call((int)(**itr), &a_Projectile, a_Face, cLuaState::Return, res); + m_LuaState.Call((int)(**itr), &a_Projectile, a_Face, a_BlockHitPos, cLuaState::Return, res); if (res) { return true; |