summaryrefslogtreecommitdiffstats
path: root/src/Protocol
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-10-23 22:49:17 +0200
committerMattes D <github@xoft.cz>2014-10-23 22:49:17 +0200
commit4df924cf4b774b68fc7cc6b144e82e47c9fe4444 (patch)
tree454cee2b4b47387ba19e7537de3d5d699be7f9fe /src/Protocol
parentFixed a crash in redstone simulator. (diff)
parentUse 3 priorities. (diff)
downloadcuberite-4df924cf4b774b68fc7cc6b144e82e47c9fe4444.tar
cuberite-4df924cf4b774b68fc7cc6b144e82e47c9fe4444.tar.gz
cuberite-4df924cf4b774b68fc7cc6b144e82e47c9fe4444.tar.bz2
cuberite-4df924cf4b774b68fc7cc6b144e82e47c9fe4444.tar.lz
cuberite-4df924cf4b774b68fc7cc6b144e82e47c9fe4444.tar.xz
cuberite-4df924cf4b774b68fc7cc6b144e82e47c9fe4444.tar.zst
cuberite-4df924cf4b774b68fc7cc6b144e82e47c9fe4444.zip
Diffstat (limited to 'src/Protocol')
-rw-r--r--src/Protocol/Protocol17x.cpp1
-rw-r--r--src/Protocol/Protocol18x.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp
index f33d37b30..1d108ce9c 100644
--- a/src/Protocol/Protocol17x.cpp
+++ b/src/Protocol/Protocol17x.cpp
@@ -1901,6 +1901,7 @@ void cProtocol172::HandlePacketClientSettings(cByteBuffer & a_ByteBuffer)
HANDLE_READ(a_ByteBuffer, ReadByte, Byte, ShowCape);
m_Client->SetLocale(Locale);
+ m_Client->SetViewDistance(ViewDistance);
// TODO: Do anything with the other values.
}
diff --git a/src/Protocol/Protocol18x.cpp b/src/Protocol/Protocol18x.cpp
index 8445e8f26..8170a494f 100644
--- a/src/Protocol/Protocol18x.cpp
+++ b/src/Protocol/Protocol18x.cpp
@@ -2160,6 +2160,7 @@ void cProtocol180::HandlePacketClientSettings(cByteBuffer & a_ByteBuffer)
HANDLE_READ(a_ByteBuffer, ReadChar, char, SkinFlags);
m_Client->SetLocale(Locale);
+ m_Client->SetViewDistance(ViewDistance);
// TODO: Handle other values
}