diff options
author | ElNounch <ElNounch@users.noreply.github.com> | 2016-08-22 19:43:43 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2016-08-22 19:43:43 +0200 |
commit | e9d1a942d14de642ae9dae5974bffa0e5fdd6ec6 (patch) | |
tree | c76e8a614c71d688dfb2342b030af235f916e91b /src/Entities/Player.cpp | |
parent | WebAdmin: Report opened ports. (#3333) (diff) | |
download | cuberite-e9d1a942d14de642ae9dae5974bffa0e5fdd6ec6.tar cuberite-e9d1a942d14de642ae9dae5974bffa0e5fdd6ec6.tar.gz cuberite-e9d1a942d14de642ae9dae5974bffa0e5fdd6ec6.tar.bz2 cuberite-e9d1a942d14de642ae9dae5974bffa0e5fdd6ec6.tar.lz cuberite-e9d1a942d14de642ae9dae5974bffa0e5fdd6ec6.tar.xz cuberite-e9d1a942d14de642ae9dae5974bffa0e5fdd6ec6.tar.zst cuberite-e9d1a942d14de642ae9dae5974bffa0e5fdd6ec6.zip |
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r-- | src/Entities/Player.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index e4c0fdaa5..50bec3608 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -1827,8 +1827,7 @@ bool cPlayer::DoMoveToWorld(cWorld * a_World, bool a_ShouldSendRespawn, Vector3d ParentChunk->GetPosX(), ParentChunk->GetPosZ() ); ParentChunk->RemoveEntity(this); - a_World->AddPlayer(this); - cRoot::Get()->GetPluginManager()->CallHookEntityChangedWorld(*this, a_OldWorld); + a_World->AddPlayer(this, &a_OldWorld); // New world will appropriate and announce client at his next tick }); return true; } |