summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginLua.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-08-16 18:44:14 +0200
committerHowaner <franzi.moos@googlemail.com>2014-08-16 18:44:14 +0200
commita68c70c900d0f3b3842d78af49423890f29af180 (patch)
treed50bfee78da1af28f1e287c3aee5038f705aae0c /src/Bindings/PluginLua.cpp
parentMerge pull request #1308 from mc-server/logger (diff)
downloadcuberite-a68c70c900d0f3b3842d78af49423890f29af180.tar
cuberite-a68c70c900d0f3b3842d78af49423890f29af180.tar.gz
cuberite-a68c70c900d0f3b3842d78af49423890f29af180.tar.bz2
cuberite-a68c70c900d0f3b3842d78af49423890f29af180.tar.lz
cuberite-a68c70c900d0f3b3842d78af49423890f29af180.tar.xz
cuberite-a68c70c900d0f3b3842d78af49423890f29af180.tar.zst
cuberite-a68c70c900d0f3b3842d78af49423890f29af180.zip
Diffstat (limited to 'src/Bindings/PluginLua.cpp')
-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 0f3f25d75..37db78994 100644
--- a/src/Bindings/PluginLua.cpp
+++ b/src/Bindings/PluginLua.cpp
@@ -835,14 +835,14 @@ bool cPluginLua::OnPlayerLeftClick(cPlayer & a_Player, int a_BlockX, int a_Block
-bool cPluginLua::OnPlayerMoved(cPlayer & a_Player)
+bool cPluginLua::OnPlayerMoving(cPlayer & a_Player, const Vector3d a_OldPosition, const Vector3d a_NewPosition)
{
cCSLock Lock(m_CriticalSection);
bool res = false;
cLuaRefs & Refs = m_HookMap[cPluginManager::HOOK_PLAYER_MOVING];
for (cLuaRefs::iterator itr = Refs.begin(), end = Refs.end(); itr != end; ++itr)
{
- m_LuaState.Call((int)(**itr), &a_Player, cLuaState::Return, res);
+ m_LuaState.Call((int)(**itr), &a_Player, &a_OldPosition, &a_NewPosition, cLuaState::Return, res);
if (res)
{
return true;