diff options
author | Mattes D <github@xoft.cz> | 2014-06-01 20:10:03 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-06-01 20:10:03 +0200 |
commit | 61edb83ce54b3d50693b4c313f85602d889a9a0d (patch) | |
tree | b367e6851fe03a062b49bd0bce8f9fddfafe964a /src/Bindings/PluginLua.cpp | |
parent | abort does not take a parameter. (diff) | |
parent | Made a_BlockHitPos a reference (diff) | |
download | cuberite-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/PluginLua.cpp')
-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 59708bf59..625931931 100644 --- a/src/Bindings/PluginLua.cpp +++ b/src/Bindings/PluginLua.cpp @@ -1113,14 +1113,14 @@ bool cPluginLua::OnPreCrafting(const cPlayer * a_Player, const cCraftingGrid * a -bool cPluginLua::OnProjectileHitBlock(cProjectileEntity & a_Projectile) +bool cPluginLua::OnProjectileHitBlock(cProjectileEntity & a_Projectile, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Face, const 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, cLuaState::Return, res); + m_LuaState.Call((int)(**itr), &a_Projectile, a_BlockX, a_BlockY, a_BlockZ, a_Face, &a_BlockHitPos, cLuaState::Return, res); if (res) { return true; |