mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Basiclly Support 0.3.0
This commit is contained in:
parent
e7e7c81e07
commit
20c4f16a52
45 changed files with 245 additions and 127 deletions
|
|
@ -10,8 +10,10 @@ class PlaceBlockPacket extends RakNetDataPacket{
|
|||
public $face;
|
||||
|
||||
public function pid(){
|
||||
if($this->PROTOCOL < ProtocolInfo6::CURRENT_PROTOCOL_6){
|
||||
return ProtocolInfo4::PLACE_BLOCK_PACKET;
|
||||
if($this->PROTOCOL < ProtocolInfo4::CURRENT_PROTOCOL_4){
|
||||
return ProtocolInfo3::PLACE_BLOCK_PACKET;
|
||||
}elseif($this->PROTOCOL < ProtocolInfo6::CURRENT_PROTOCOL_6){
|
||||
return ProtocolInfo5::PLACE_BLOCK_PACKET;
|
||||
}elseif($this->PROTOCOL < ProtocolInfo::CURRENT_PROTOCOL) {
|
||||
return ProtocolInfo12::PLACE_BLOCK_PACKET;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue