summaryrefslogtreecommitdiffstats
path: root/ProtoProxy/Connection.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-11 21:40:26 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-11 21:40:26 +0200
commit3b125d47d149b76f9d9bc6d88c581cdc1b95655d (patch)
tree6f35dba813505b5b9f4648aad46e7771b0cbd151 /ProtoProxy/Connection.cpp
parentFixed chatlog plugin (diff)
downloadcuberite-3b125d47d149b76f9d9bc6d88c581cdc1b95655d.tar
cuberite-3b125d47d149b76f9d9bc6d88c581cdc1b95655d.tar.gz
cuberite-3b125d47d149b76f9d9bc6d88c581cdc1b95655d.tar.bz2
cuberite-3b125d47d149b76f9d9bc6d88c581cdc1b95655d.tar.lz
cuberite-3b125d47d149b76f9d9bc6d88c581cdc1b95655d.tar.xz
cuberite-3b125d47d149b76f9d9bc6d88c581cdc1b95655d.tar.zst
cuberite-3b125d47d149b76f9d9bc6d88c581cdc1b95655d.zip
Diffstat (limited to '')
-rw-r--r--ProtoProxy/Connection.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/ProtoProxy/Connection.cpp b/ProtoProxy/Connection.cpp
index 219daa504..ec6886242 100644
--- a/ProtoProxy/Connection.cpp
+++ b/ProtoProxy/Connection.cpp
@@ -586,6 +586,7 @@ bool cConnection::DecodeServersPackets(const char * a_Data, int a_Size)
case PACKET_BLOCK_CHANGE: HANDLE_SERVER_READ(HandleServerBlockChange); break;
case PACKET_CHANGE_GAME_STATE: HANDLE_SERVER_READ(HandleServerChangeGameState); break;
case PACKET_CHAT_MESSAGE: HANDLE_SERVER_READ(HandleServerChatMessage); break;
+ case PACKET_COLLECT_PICKUP: HANDLE_SERVER_READ(HandleServerCollectPickup); break;
case PACKET_COMPASS: HANDLE_SERVER_READ(HandleServerCompass); break;
case PACKET_DESTROY_ENTITIES: HANDLE_SERVER_READ(HandleServerDestroyEntities); break;
case PACKET_ENCRYPTION_KEY_REQUEST: HANDLE_SERVER_READ(HandleServerEncryptionKeyRequest); break;
@@ -1074,6 +1075,21 @@ bool cConnection::HandleServerChatMessage(void)
+bool cConnection::HandleServerCollectPickup(void)
+{
+ HANDLE_SERVER_PACKET_READ(ReadBEInt, int, CollectedID);
+ HANDLE_SERVER_PACKET_READ(ReadBEInt, int, CollectorID);
+ Log("Received a PACKET_COLLECT_PICKUP from the server:");
+ Log(" CollectedID = %d", CollectedID);
+ Log(" CollectorID = %d", CollectorID);
+ COPY_TO_CLIENT();
+ return true;
+}
+
+
+
+
+
bool cConnection::HandleServerCompass(void)
{
HANDLE_SERVER_PACKET_READ(ReadBEInt, int, SpawnX);