summaryrefslogtreecommitdiffstats
path: root/source/cPlayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/cPlayer.cpp6
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();
}
}