diff --git a/src/pocketmine/item/Item.php b/src/pocketmine/item/Item.php index 5b4ae890a..6187487dc 100644 --- a/src/pocketmine/item/Item.php +++ b/src/pocketmine/item/Item.php @@ -467,7 +467,7 @@ class Item implements ItemIds, \JsonSerializable{ */ public function setCustomName(string $name) : Item{ if($name === ""){ - $this->clearCustomName(); + return $this->clearCustomName(); } /** @var CompoundTag $display */