mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 19:59:11 +00:00
Fixed clearCustomBlockData(), close #1118
This commit is contained in:
@@ -444,7 +444,7 @@ class Item implements ItemIds, \JsonSerializable{
|
|||||||
$tag = $this->getNamedTag();
|
$tag = $this->getNamedTag();
|
||||||
|
|
||||||
if(isset($tag->BlockEntityTag) and $tag->BlockEntityTag instanceof CompoundTag){
|
if(isset($tag->BlockEntityTag) and $tag->BlockEntityTag instanceof CompoundTag){
|
||||||
unset($tag->display->BlockEntityTag);
|
unset($tag->BlockEntityTag);
|
||||||
$this->setNamedTag($tag);
|
$this->setNamedTag($tag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user