diff --git a/src/network/protocol/ProtocolInfo.php b/src/network/protocol/ProtocolInfo.php index c4269489..d59cb9e2 100644 --- a/src/network/protocol/ProtocolInfo.php +++ b/src/network/protocol/ProtocolInfo.php @@ -72,7 +72,7 @@ abstract class ProtocolInfo{ const ENTITY_DATA_PACKET = 0xb8; const PLAYER_INPUT_PACKET = 0xb9; const FULL_CHUNK_DATA_PACKET = 0xba; - //const UNLOAD_CHUNK_PACKET = 0xbb; + const UNLOAD_CHUNK_PACKET = 0xbb; } /*Unused: diff --git a/src/network/protocol/packet/UnloadChunkPacket.php b/src/network/protocol/packet/UnloadChunkPacket.php new file mode 100644 index 00000000..0153915a --- /dev/null +++ b/src/network/protocol/packet/UnloadChunkPacket.php @@ -0,0 +1,28 @@ +chunkX = $chunkX; + $this->chunkZ = $chunkZ; + } + + public function encode() + { + $this->reset(); + $this->putInt($this->chunkX); + $this->putInt($this->chunkZ); + } + + public function pid() + { + return ProtocolInfo::UNLOAD_CHUNK_PACKET; + } + + public function decode() + {} + +} +