mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Fixed properties for NBT, fixed dropping items removing extra data set
This commit is contained in:
@ -50,7 +50,7 @@ class Compound extends NamedTag implements \ArrayAccess{
|
||||
}
|
||||
|
||||
public function offsetExists($offset){
|
||||
return isset($this->{$offset});
|
||||
return isset($this->{$offset}) and $this->{$offset} instanceof Tag;
|
||||
}
|
||||
|
||||
public function offsetGet($offset){
|
||||
|
@ -24,7 +24,7 @@ namespace pocketmine\nbt\tag;
|
||||
|
||||
abstract class NamedTag extends Tag{
|
||||
|
||||
public $__name;
|
||||
protected $__name;
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
|
Reference in New Issue
Block a user