This commit is contained in:
Sunch 2025-04-29 19:21:59 +08:00
parent 26cafcab00
commit 1e85a65764
52 changed files with 2400 additions and 2406 deletions

View file

@ -8,11 +8,11 @@ class PlayerInputPacket extends RakNetDataPacket{
}
public function pid(){
if($this->PROTOCOL < ProtocolInfo12::CURRENT_PROTOCOL_12){
return ProtocolInfo9::PLAYER_INPUT_PACKET;
}elseif($this->PROTOCOL < ProtocolInfo::CURRENT_PROTOCOL){
return ProtocolInfo12::PLAYER_INPUT_PACKET;
}
if($this->PROTOCOL < ProtocolInfo12::CURRENT_PROTOCOL_12){
return ProtocolInfo9::PLAYER_INPUT_PACKET;
}elseif($this->PROTOCOL < ProtocolInfo::CURRENT_PROTOCOL){
return ProtocolInfo12::PLAYER_INPUT_PACKET;
}
return ProtocolInfo::PLAYER_INPUT_PACKET;
}