mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
fixed packets pid mess
This commit is contained in:
parent
23de63394b
commit
a5e19bb774
4 changed files with 10 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue