Basiclly Support 0.3.0

This commit is contained in:
yefengeeeeeeeeeee 2026-07-11 16:51:14 +08:00
parent e7e7c81e07
commit 20c4f16a52
45 changed files with 245 additions and 127 deletions

View file

@ -6,10 +6,10 @@ class ContainerSetSlotPacket extends RakNetDataPacket{
public $item;
public function pid(){
if($this->PROTOCOL < ProtocolInfo4::CURRENT_PROTOCOL_4){
return ProtocolInfo3::CONTAINER_SET_SLOT_PACKET;
}elseif($this->PROTOCOL < ProtocolInfo6::CURRENT_PROTOCOL_6){
if($this->PROTOCOL < ProtocolInfo5::CURRENT_PROTOCOL_5){
return ProtocolInfo4::CONTAINER_SET_SLOT_PACKET;
}elseif($this->PROTOCOL < ProtocolInfo6::CURRENT_PROTOCOL_6){
return ProtocolInfo5::CONTAINER_SET_SLOT_PACKET;
}elseif($this->PROTOCOL < ProtocolInfo8::CURRENT_PROTOCOL_8){
return ProtocolInfo6::CONTAINER_SET_SLOT_PACKET;
}elseif($this->PROTOCOL < ProtocolInfo9::CURRENT_PROTOCOL_9){