diff options
-rw-r--r-- | source/cPlayer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/cPlayer.cpp b/source/cPlayer.cpp index 1086e862a..e5d67c96e 100644 --- a/source/cPlayer.cpp +++ b/source/cPlayer.cpp @@ -98,9 +98,9 @@ cPlayer::cPlayer(cClientHandle* a_Client, const AString & a_PlayerName) {
m_Inventory->Clear();
m_CreativeInventory->Clear();
- SetPosX( cRoot::Get()->GetDefaultWorld()->GetSpawnX() );
- SetPosY( cRoot::Get()->GetDefaultWorld()->GetSpawnY() );
- SetPosZ( cRoot::Get()->GetDefaultWorld()->GetSpawnZ() );
+ m_Pos->x = cRoot::Get()->GetDefaultWorld()->GetSpawnX();
+ m_Pos->y = cRoot::Get()->GetDefaultWorld()->GetSpawnY();
+ m_Pos->z = cRoot::Get()->GetDefaultWorld()->GetSpawnZ();
}
}
|