fixed packets pid mess

This commit is contained in:
Sunch 2025-04-12 21:23:26 +08:00
parent 23de63394b
commit a5e19bb774
4 changed files with 10 additions and 6 deletions

View file

@ -10,8 +10,8 @@ class PlaceBlockPacket extends RakNetDataPacket{
public $unknown7 = 0;
public function pid(){
if($this->PROTOCOL < ProtocolInfo9::CURRENT_PROTOCOL_9) {
return ProtocolInfo7::PLACE_BLOCK_PACKET;
if($this->PROTOCOL < ProtocolInfo::CURRENT_PROTOCOL) {
return ProtocolInfo12::PLACE_BLOCK_PACKET;
}
return ProtocolInfo::PLACE_BLOCK_PACKET;
}