summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-07 10:24:06 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-07 10:24:06 +0200
commit8aa88e7815125f2d74e9c7bc2ccebf96a7b4f67a (patch)
treef465b61e911b8c11b6adf7a341c691c7e5e03365 /source
parentmade the permission page more manageable. (diff)
downloadcuberite-8aa88e7815125f2d74e9c7bc2ccebf96a7b4f67a.tar
cuberite-8aa88e7815125f2d74e9c7bc2ccebf96a7b4f67a.tar.gz
cuberite-8aa88e7815125f2d74e9c7bc2ccebf96a7b4f67a.tar.bz2
cuberite-8aa88e7815125f2d74e9c7bc2ccebf96a7b4f67a.tar.lz
cuberite-8aa88e7815125f2d74e9c7bc2ccebf96a7b4f67a.tar.xz
cuberite-8aa88e7815125f2d74e9c7bc2ccebf96a7b4f67a.tar.zst
cuberite-8aa88e7815125f2d74e9c7bc2ccebf96a7b4f67a.zip
Diffstat (limited to '')
-rw-r--r--source/Protocol/Protocol132.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/source/Protocol/Protocol132.cpp b/source/Protocol/Protocol132.cpp
index eb73fde96..c10338f54 100644
--- a/source/Protocol/Protocol132.cpp
+++ b/source/Protocol/Protocol132.cpp
@@ -67,7 +67,10 @@ enum
PACKET_BLOCK_ACTION = 0x36,
PACKET_BLOCK_BREAK_ANIM = 0x37,
PACKET_SOUND_EFFECT = 0x3e,
- PACKET_SOUND_PARTICLE_EFFECT = 0x3d
+ PACKET_SOUND_PARTICLE_EFFECT = 0x3d,
+ PACKET_LOCALE_VIEW_DISTANCE = 0xcc,
+ PACKET_CLIENT_STATUSES = 0xcd,
+ PACKET_ENCRYPTION_KEY_RESP = 0xfc,
} ;
@@ -468,10 +471,10 @@ int cProtocol132::ParsePacket(unsigned char a_PacketType)
{
switch (a_PacketType)
{
- default: return super::ParsePacket(a_PacketType); // off-load previously known packets into cProtocol125
- case 0xcc: return ParseLocaleViewDistance();
- case 0xcd: return ParseClientStatuses();
- case 0xfc: return ParseEncryptionKeyResponse();
+ default: return super::ParsePacket(a_PacketType); // off-load previously known packets into cProtocol125
+ case PACKET_LOCALE_VIEW_DISTANCE: return ParseLocaleViewDistance();
+ case PACKET_CLIENT_STATUSES: return ParseClientStatuses();
+ case PACKET_ENCRYPTION_KEY_RESP: return ParseEncryptionKeyResponse();
}
}