MCPcopy Create free account
hub / github.com/cuberite/cuberite / HandleServerMultiBlockChange

Method HandleServerMultiBlockChange

Tools/ProtoProxy/Connection.cpp:1923–1939  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1921
1922
1923bool cConnection::HandleServerMultiBlockChange(void)
1924{
1925 HANDLE_SERVER_PACKET_READ(ReadBEInt, int, ChunkX);
1926 HANDLE_SERVER_PACKET_READ(ReadBEInt, int, ChunkZ);
1927 HANDLE_SERVER_PACKET_READ(ReadBEShort, short, NumBlocks);
1928 HANDLE_SERVER_PACKET_READ(ReadBEInt, int, DataSize);
1929 AString BlockChangeData;
1930 if (!m_ServerBuffer.ReadString(BlockChangeData, DataSize))
1931 {
1932 return false;
1933 }
1934 Log("Received a PACKET_MULTI_BLOCK_CHANGE packet from the server:");
1935 Log(" Chunk = [%d, %d]", ChunkX, ChunkZ);
1936 Log(" NumBlocks = %d", NumBlocks);
1937 COPY_TO_CLIENT();
1938 return true;
1939}
1940
1941
1942

Callers

nothing calls this directly

Calls 1

ReadStringMethod · 0.45

Tested by

no test coverage detected