mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
More broken mess to spawn 1.2
This commit is contained in:
@ -41,12 +41,14 @@ class TextPacket extends DataPacket{
|
||||
const TYPE_ANNOUNCEMENT = 7;
|
||||
|
||||
public $type;
|
||||
public $unknownBool = false;
|
||||
public $source;
|
||||
public $message;
|
||||
public $parameters = [];
|
||||
|
||||
public function decodePayload(){
|
||||
$this->type = $this->getByte();
|
||||
$this->unknownBool = $this->getBool();
|
||||
switch($this->type){
|
||||
case self::TYPE_POPUP:
|
||||
case self::TYPE_CHAT:
|
||||
@ -71,6 +73,7 @@ class TextPacket extends DataPacket{
|
||||
|
||||
public function encodePayload(){
|
||||
$this->putByte($this->type);
|
||||
$this->putBool($this->unknownBool);
|
||||
switch($this->type){
|
||||
case self::TYPE_POPUP:
|
||||
case self::TYPE_CHAT:
|
||||
|
Reference in New Issue
Block a user