1
0

Perform bed checks upon respawn (#5300)

Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
This commit is contained in:
JK2K
2021-10-02 22:28:24 +02:00
committed by GitHub
parent 1a0d9450ea
commit be3111d133
5 changed files with 95 additions and 29 deletions

View File

@@ -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());
}