Support MCPE 0.3.2 - 0.6.0

This commit is contained in:
yefengeeeeeeeeeee 2025-03-22 14:27:02 +08:00
parent 6cfc8f1385
commit e428f39736
21 changed files with 1079 additions and 139 deletions

View file

@ -9,13 +9,17 @@ class MessagePacket extends RakNetDataPacket{
}
public function decode(){
$this->source = $this->getString();
if($this->PROTOCOL > ProtocolInfo9::CURRENT_PROTOCOL_9){ //0.6.1 and below From NostalgiaCore-BackPort Author:Gameherobrine
$this->source = $this->getString();
}
$this->message = $this->getString();
}
public function encode(){
$this->reset();
$this->putString($this->source);
if($this->PROTOCOL > ProtocolInfo9::CURRENT_PROTOCOL_9){ //0.6.1 and below From NostalgiaCore-BackPort Author:Gameherobrine
$this->putString($this->source);
}
$this->putString($this->message);
}