Fixed properties for NBT, fixed dropping items removing extra data set

This commit is contained in:
Shoghi Cervantes
2015-08-06 21:51:39 +02:00
parent 02cb9d69a9
commit cba9ff393c
4 changed files with 7 additions and 100 deletions

View File

@ -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){

View File

@ -24,7 +24,7 @@ namespace pocketmine\nbt\tag;
abstract class NamedTag extends Tag{
public $__name;
protected $__name;
/**
* @param string $name