More broken mess to spawn 1.2

This commit is contained in:
Dylan K. Taylor
2017-08-01 20:06:02 +01:00
parent 10ff2948ac
commit 77cd8e7799
52 changed files with 1558 additions and 506 deletions

View File

@ -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: