mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 02:38:54 +00:00
Fixed clearCustomBlockData(), close #1118
This commit is contained in:
parent
caa229a25f
commit
6af87b7b30
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user