summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
authorElNounch <ElNounch@users.noreply.github.com>2016-08-22 19:43:43 +0200
committerMattes D <github@xoft.cz>2016-08-22 19:43:43 +0200
commite9d1a942d14de642ae9dae5974bffa0e5fdd6ec6 (patch)
treec76e8a614c71d688dfb2342b030af235f916e91b /src/Entities/Player.cpp
parentWebAdmin: Report opened ports. (#3333) (diff)
downloadcuberite-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 '')
-rw-r--r--src/Entities/Player.cpp3
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;
}