Merge pull request #55 from mc-server/falldamage-teleport
Keep players from taking damage when teleporting. (Hopefully).
This commit is contained in:
commit
33155a51e2
@ -777,6 +777,7 @@ void cPlayer::SendMessage(const AString & a_Message)
|
||||
|
||||
void cPlayer::TeleportToCoords(double a_PosX, double a_PosY, double a_PosZ)
|
||||
{
|
||||
m_LastGroundHeight = (float)a_PosY;
|
||||
SetPosition( a_PosX, a_PosY, a_PosZ );
|
||||
|
||||
m_World->BroadcastTeleportEntity(*this, GetClientHandle());
|
||||
|
Loading…
Reference in New Issue
Block a user