summaryrefslogtreecommitdiffstats
path: root/src/Entities/Entity.cpp
diff options
context:
space:
mode:
authorJK2K <ikuba03@gmail.com>2021-10-02 22:28:24 +0200
committerGitHub <noreply@github.com>2021-10-02 22:28:24 +0200
commitbe3111d133cf01fe266d1e267acdb9f22f98f513 (patch)
treeb79806cb1443d6767e837f26ec9a815ec852dab3 /src/Entities/Entity.cpp
parentAuthentication flow: move construction, slim down classes (#5312) (diff)
downloadcuberite-be3111d133cf01fe266d1e267acdb9f22f98f513.tar
cuberite-be3111d133cf01fe266d1e267acdb9f22f98f513.tar.gz
cuberite-be3111d133cf01fe266d1e267acdb9f22f98f513.tar.bz2
cuberite-be3111d133cf01fe266d1e267acdb9f22f98f513.tar.lz
cuberite-be3111d133cf01fe266d1e267acdb9f22f98f513.tar.xz
cuberite-be3111d133cf01fe266d1e267acdb9f22f98f513.tar.zst
cuberite-be3111d133cf01fe266d1e267acdb9f22f98f513.zip
Diffstat (limited to 'src/Entities/Entity.cpp')
-rw-r--r--src/Entities/Entity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp
index 74b184c54..e275d03da 100644
--- a/src/Entities/Entity.cpp
+++ b/src/Entities/Entity.cpp
@@ -1500,7 +1500,7 @@ bool cEntity::DetectPortal()
if (IsPlayer())
{
cPlayer * Player = static_cast<cPlayer *>(this);
- if (Player->GetBedWorld() == TargetWorld)
+ if (Player->GetRespawnWorld() == TargetWorld)
{
return MoveToWorld(*TargetWorld, Player->GetLastBedPos());
}