Added support for more NBT data, renaming inventories, fixed tags not being saved, added support for tags in /give

This commit is contained in:
Shoghi Cervantes
2015-08-07 16:27:30 +02:00
parent d1bfb304cb
commit 75b7b03857
42 changed files with 244 additions and 51 deletions

View File

@ -41,10 +41,10 @@ class TextPacket extends DataPacket{
public function decode(){
$this->type = $this->getByte();
switch($this->type){
case self::TYPE_POPUP:
case self::TYPE_CHAT:
$this->source = $this->getString();
case self::TYPE_RAW:
case self::TYPE_POPUP:
case self::TYPE_TIP:
$this->message = $this->getString();
break;