summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginLua.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-08-16 22:29:41 +0200
committerMattes D <github@xoft.cz>2014-08-16 22:29:41 +0200
commite045a25e10e1aff47c35fae44c6b585df061c612 (patch)
treeb2c69b5faf2f199e30bdf9c2ee3b6cd76a125ef7 /src/Bindings/PluginLua.cpp
parentMerge pull request #1308 from mc-server/logger (diff)
parentUpdated HOOK_PLAYER_MOVING documentation. (diff)
downloadcuberite-e045a25e10e1aff47c35fae44c6b585df061c612.tar
cuberite-e045a25e10e1aff47c35fae44c6b585df061c612.tar.gz
cuberite-e045a25e10e1aff47c35fae44c6b585df061c612.tar.bz2
cuberite-e045a25e10e1aff47c35fae44c6b585df061c612.tar.lz
cuberite-e045a25e10e1aff47c35fae44c6b585df061c612.tar.xz
cuberite-e045a25e10e1aff47c35fae44c6b585df061c612.tar.zst
cuberite-e045a25e10e1aff47c35fae44c6b585df061c612.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;