summaryrefslogtreecommitdiffstats
path: root/source/cPlayer.cpp
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-15 23:11:56 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-15 23:11:56 +0100
commit57a97e8036aec10625be3543bbfe6b525e9ba5e3 (patch)
tree6fdd1c032971aa8109f38c46d5694004e8b62feb /source/cPlayer.cpp
parentCan use the 'restart' command again. cAuthenticator no longer asserts because it properly stops when the server is stopped. (diff)
downloadcuberite-57a97e8036aec10625be3543bbfe6b525e9ba5e3.tar
cuberite-57a97e8036aec10625be3543bbfe6b525e9ba5e3.tar.gz
cuberite-57a97e8036aec10625be3543bbfe6b525e9ba5e3.tar.bz2
cuberite-57a97e8036aec10625be3543bbfe6b525e9ba5e3.tar.lz
cuberite-57a97e8036aec10625be3543bbfe6b525e9ba5e3.tar.xz
cuberite-57a97e8036aec10625be3543bbfe6b525e9ba5e3.tar.zst
cuberite-57a97e8036aec10625be3543bbfe6b525e9ba5e3.zip
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();
}
}