diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-02-14 21:33:16 +0100 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-02-16 01:18:57 +0100 |
commit | 507a8a4b844f1c0a36bfc7063804ddca1012948d (patch) | |
tree | 27c338093d60446afc79f8b4034dcfe8287b230e | |
parent | Disable Hunger Death (diff) | |
download | cuberite-507a8a4b844f1c0a36bfc7063804ddca1012948d.tar cuberite-507a8a4b844f1c0a36bfc7063804ddca1012948d.tar.gz cuberite-507a8a4b844f1c0a36bfc7063804ddca1012948d.tar.bz2 cuberite-507a8a4b844f1c0a36bfc7063804ddca1012948d.tar.lz cuberite-507a8a4b844f1c0a36bfc7063804ddca1012948d.tar.xz cuberite-507a8a4b844f1c0a36bfc7063804ddca1012948d.tar.zst cuberite-507a8a4b844f1c0a36bfc7063804ddca1012948d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Protocol/Protocol17x.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp index 5aa18300c..1dfa5ec90 100644 --- a/src/Protocol/Protocol17x.cpp +++ b/src/Protocol/Protocol17x.cpp @@ -550,7 +550,7 @@ void cProtocol172::SendLogin(const cPlayer & a_Player, const cWorld & a_World) Pkt.WriteByte((Byte)a_Player.GetEffectiveGameMode() | (cRoot::Get()->GetServer()->IsHardcore() ? 0x08 : 0)); // Hardcore flag bit 4 Pkt.WriteChar((char)a_World.GetDimension()); Pkt.WriteByte(2); // TODO: Difficulty (set to Normal) - Pkt.WriteByte(cRoot::Get()->GetServer()->GetMaxPlayers()); + Pkt.WriteByte(std::min(cRoot::Get()->GetServer()->GetMaxPlayers(), 60)); Pkt.WriteString("default"); // Level type - wtf? } |