mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Improved NBT json parsing, attribute base
This commit is contained in:
@ -1188,13 +1188,9 @@ class Item{
|
||||
if($tag->display->getCount() === 0){
|
||||
unset($tag->display);
|
||||
}
|
||||
}else{
|
||||
$tag->display = new Compound("display", [
|
||||
"Name" => new String("Name", $name)
|
||||
]);
|
||||
}
|
||||
|
||||
$this->setNamedTag($tag);
|
||||
$this->setNamedTag($tag);
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user