mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +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
|
|
@ -25,6 +25,9 @@ class AddPlayerPacket extends RakNetDataPacket{
|
|||
public $metadata;
|
||||
|
||||
public function pid(){
|
||||
if($this->PROTOCOL < ProtocolInfo4::CURRENT_PROTOCOL_4){
|
||||
return ProtocolInfo3::ADD_PLAYER_PACKET;
|
||||
}
|
||||
return ProtocolInfo::ADD_PLAYER_PACKET;
|
||||
}
|
||||
|
||||
|
|
@ -44,7 +47,9 @@ class AddPlayerPacket extends RakNetDataPacket{
|
|||
$this->putByte($this->pitch);
|
||||
$this->putShort($this->itemID);
|
||||
$this->putShort($this->itemAuxValue); //Example: bow shooting power
|
||||
if($this->PROTOCOL >= ProtocolInfo6::CURRENT_PROTOCOL_6){
|
||||
$this->put(Utils::writeMetadata($this->metadata));
|
||||
}
|
||||
}
|
||||
|
||||
public function eidsToLocal(Player $p){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue