summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginLua.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-06-01 14:06:47 +0200
committerSTRWarrior <niels.breuker@hotmail.nl>2014-06-01 14:06:47 +0200
commit319169eafbbe5630a311051ea5fdf91e7f482a71 (patch)
tree219229a53f076d10878dd2dba3613adef1824d79 /src/Bindings/PluginLua.cpp
parentUsed recommendations (diff)
downloadcuberite-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.cpp4
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;