mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 11:26:37 +00:00
Fix NBT "getArray()" (#163)
This commit is contained in:
parent
544d99f161
commit
e790573f2e
@ -610,6 +610,7 @@ class NBT{
|
|||||||
public function getArray(){
|
public function getArray(){
|
||||||
$data = [];
|
$data = [];
|
||||||
self::toArray($data, $this->data);
|
self::toArray($data, $this->data);
|
||||||
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static function toArray(array &$data, Tag $tag){
|
private static function toArray(array &$data, Tag $tag){
|
||||||
@ -681,4 +682,4 @@ class NBT{
|
|||||||
$this->data = $data;
|
$this->data = $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user