diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-05-31 14:14:55 +0200 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-05-31 14:14:55 +0200 |
commit | d1b23060ada3946d68453e381867861bc768999b (patch) | |
tree | c239f6924c5f9d3fb0515b411ae50b18544392aa /src/Bindings/PluginLua.cpp | |
parent | Using recommendations (I think) (diff) | |
download | cuberite-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 '')
-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 97f78351b..da98f3f95 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, const Vector3i * a_BlockHitPos) +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, a_Face, a_BlockHitPos, 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; |