summaryrefslogtreecommitdiffstats
path: root/source/Protocol/Protocol125.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-11 18:15:34 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-11 18:15:34 +0100
commitd2573b84dd52c06c723953ef66da4af8937a5a53 (patch)
tree32b2fcc9ccfb727fe339f5cb675cbbb50298238c /source/Protocol/Protocol125.cpp
parentFixed a crash in LeakFinder when out of memory (diff)
downloadcuberite-d2573b84dd52c06c723953ef66da4af8937a5a53.tar
cuberite-d2573b84dd52c06c723953ef66da4af8937a5a53.tar.gz
cuberite-d2573b84dd52c06c723953ef66da4af8937a5a53.tar.bz2
cuberite-d2573b84dd52c06c723953ef66da4af8937a5a53.tar.lz
cuberite-d2573b84dd52c06c723953ef66da4af8937a5a53.tar.xz
cuberite-d2573b84dd52c06c723953ef66da4af8937a5a53.tar.zst
cuberite-d2573b84dd52c06c723953ef66da4af8937a5a53.zip
Diffstat (limited to '')
-rw-r--r--source/Protocol/Protocol125.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Protocol/Protocol125.cpp b/source/Protocol/Protocol125.cpp
index 0b4b0f942..9514fb278 100644
--- a/source/Protocol/Protocol125.cpp
+++ b/source/Protocol/Protocol125.cpp
@@ -461,7 +461,7 @@ void cProtocol125::SendLogin(const cPlayer & a_Player, const cWorld & a_World)
WriteString(""); // Username, not used
WriteString("default"); // Level type
WriteInt ((int)a_Player.GetGameMode());
- WriteInt (0); // TODO: Dimension (Nether / Overworld / End)
+ WriteInt ((int)(a_World.GetDimension()));
WriteByte (2); // TODO: Difficulty
WriteByte (0); // Unused
WriteByte (60); // Client list width or something
@@ -600,7 +600,7 @@ void cProtocol125::SendRespawn(void)
{
cCSLock Lock(m_CSPacket);
WriteByte (PACKET_RESPAWN);
- WriteInt (0); // TODO: Dimension; 0 = Overworld
+ WriteInt ((int)(m_Client->GetPlayer()->GetWorld()->GetDimension()));
WriteByte (2); // TODO: Difficulty; 2 = Normal
WriteByte ((char)m_Client->GetPlayer()->GetGameMode());
WriteShort (256); // Current world height