summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol18x.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-12 02:00:28 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-12 02:00:28 +0200
commiteb19eff5ac46515360b3af0647135c5460342ed7 (patch)
treee05829446c9fdb02cab79a133b5ce25455ce4a84 /src/Protocol/Protocol18x.cpp
parent1.8: Fixed block entities. (diff)
downloadcuberite-eb19eff5ac46515360b3af0647135c5460342ed7.tar
cuberite-eb19eff5ac46515360b3af0647135c5460342ed7.tar.gz
cuberite-eb19eff5ac46515360b3af0647135c5460342ed7.tar.bz2
cuberite-eb19eff5ac46515360b3af0647135c5460342ed7.tar.lz
cuberite-eb19eff5ac46515360b3af0647135c5460342ed7.tar.xz
cuberite-eb19eff5ac46515360b3af0647135c5460342ed7.tar.zst
cuberite-eb19eff5ac46515360b3af0647135c5460342ed7.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol18x.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Protocol/Protocol18x.cpp b/src/Protocol/Protocol18x.cpp
index 4d74995db..59852227c 100644
--- a/src/Protocol/Protocol18x.cpp
+++ b/src/Protocol/Protocol18x.cpp
@@ -665,6 +665,12 @@ void cProtocol180::SendLogin(const cPlayer & a_Player, const cWorld & a_World)
cPacketizer Pkt(*this, 0x05); // Spawn Position packet
Pkt.WritePosition(a_World.GetSpawnX(), a_World.GetSpawnY(), a_World.GetSpawnZ());
}
+
+ // Send the server difficulty:
+ {
+ cPacketizer Pkt(*this, 0x41);
+ Pkt.WriteChar(1);
+ }
// Send player abilities:
SendPlayerAbilities();