1
0

Merge pull request #55 from mc-server/falldamage-teleport

Keep players from taking damage when teleporting. (Hopefully).
This commit is contained in:
Alexander Harkness 2013-08-09 12:36:45 -07:00
commit 33155a51e2

View File

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