Detrailed whitespace
This commit is contained in:
parent
8811837aea
commit
cb77b39dc6
|
@ -617,7 +617,7 @@ void cEntity::Tick(float a_Dt, cChunk & a_Chunk)
|
||||||
|
|
||||||
// Handle drowning
|
// Handle drowning
|
||||||
HandleAir();
|
HandleAir();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!DetectPortal()) // Our chunk is invalid if we have moved to another world
|
if (!DetectPortal()) // Our chunk is invalid if we have moved to another world
|
||||||
{
|
{
|
||||||
|
@ -1129,7 +1129,7 @@ bool cEntity::DetectPortal()
|
||||||
cPlayer * Player = (cPlayer *)this;
|
cPlayer * Player = (cPlayer *)this;
|
||||||
Player->TeleportToCoords(Player->GetLastBedPos().x, Player->GetLastBedPos().y, Player->GetLastBedPos().z);
|
Player->TeleportToCoords(Player->GetLastBedPos().x, Player->GetLastBedPos().y, Player->GetLastBedPos().z);
|
||||||
Player->GetClientHandle()->SendRespawn(dimOverworld);
|
Player->GetClientHandle()->SendRespawn(dimOverworld);
|
||||||
}
|
}
|
||||||
|
|
||||||
return MoveToWorld(cRoot::Get()->CreateAndInitializeWorld(GetWorld()->GetLinkedOverworldName()), false);
|
return MoveToWorld(cRoot::Get()->CreateAndInitializeWorld(GetWorld()->GetLinkedOverworldName()), false);
|
||||||
}
|
}
|
||||||
|
@ -1146,7 +1146,7 @@ bool cEntity::DetectPortal()
|
||||||
{
|
{
|
||||||
((cPlayer *)this)->AwardAchievement(achEnterTheEnd);
|
((cPlayer *)this)->AwardAchievement(achEnterTheEnd);
|
||||||
((cPlayer *)this)->GetClientHandle()->SendRespawn(dimEnd);
|
((cPlayer *)this)->GetClientHandle()->SendRespawn(dimEnd);
|
||||||
}
|
}
|
||||||
|
|
||||||
return MoveToWorld(cRoot::Get()->CreateAndInitializeWorld(GetWorld()->GetEndWorldName(), dimEnd, GetWorld()->GetName()), false);
|
return MoveToWorld(cRoot::Get()->CreateAndInitializeWorld(GetWorld()->GetEndWorldName(), dimEnd, GetWorld()->GetName()), false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user