summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginLua.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/PluginLua.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 '')
-rw-r--r--src/Bindings/PluginLua.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Bindings/PluginLua.cpp b/src/Bindings/PluginLua.cpp
index 7e69e0f4b..9e989a9e1 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)
+bool cPluginLua::OnProjectileHitBlock(cProjectileEntity & a_Projectile, eBlockFace a_Face)
{
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, cLuaState::Return, res);
+ m_LuaState.Call((int)(**itr), &a_Projectile, a_Face, cLuaState::Return, res);
if (res)
{
return true;