mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 18:29:46 +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();
|
||||
|
||||
if(isset($tag->BlockEntityTag) and $tag->BlockEntityTag instanceof CompoundTag){
|
||||
unset($tag->display->BlockEntityTag);
|
||||
unset($tag->BlockEntityTag);
|
||||
$this->setNamedTag($tag);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user