diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-06-01 14:06:47 +0200 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-06-01 14:06:47 +0200 |
commit | 319169eafbbe5630a311051ea5fdf91e7f482a71 (patch) | |
tree | 219229a53f076d10878dd2dba3613adef1824d79 /src/Bindings/PluginLua.cpp | |
parent | Used recommendations (diff) | |
download | cuberite-319169eafbbe5630a311051ea5fdf91e7f482a71.tar cuberite-319169eafbbe5630a311051ea5fdf91e7f482a71.tar.gz cuberite-319169eafbbe5630a311051ea5fdf91e7f482a71.tar.bz2 cuberite-319169eafbbe5630a311051ea5fdf91e7f482a71.tar.lz cuberite-319169eafbbe5630a311051ea5fdf91e7f482a71.tar.xz cuberite-319169eafbbe5630a311051ea5fdf91e7f482a71.tar.zst cuberite-319169eafbbe5630a311051ea5fdf91e7f482a71.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 da98f3f95..46ee7da9e 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, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Face, const Vector3d * 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_BlockX, a_BlockY, a_BlockZ, 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; |