summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginManager.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/PluginManager.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 '')
-rw-r--r--src/Bindings/PluginManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Bindings/PluginManager.cpp b/src/Bindings/PluginManager.cpp
index 89bfe3566..dbc359f0e 100644
--- a/src/Bindings/PluginManager.cpp
+++ b/src/Bindings/PluginManager.cpp
@@ -849,14 +849,14 @@ bool cPluginManager::CallHookPlayerLeftClick(cPlayer & a_Player, int a_BlockX, i
-bool cPluginManager::CallHookPlayerMoving(cPlayer & a_Player)
+bool cPluginManager::CallHookPlayerMoving(cPlayer & a_Player, const Vector3d a_OldPosition, const Vector3d a_NewPosition)
{
FIND_HOOK(HOOK_PLAYER_MOVING);
VERIFY_HOOK;
for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr)
{
- if ((*itr)->OnPlayerMoved(a_Player))
+ if ((*itr)->OnPlayerMoving(a_Player, a_OldPosition, a_NewPosition))
{
return true;
}