From 6af87b7b306c9b1892d448ac4a651e29fc6bada1 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 13 Jul 2017 10:44:38 +0100 Subject: [PATCH] Fixed clearCustomBlockData(), close #1118 --- src/pocketmine/item/Item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/item/Item.php b/src/pocketmine/item/Item.php index 377eb507f..f3da5334f 100644 --- a/src/pocketmine/item/Item.php +++ b/src/pocketmine/item/Item.php @@ -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); }