Item: fixed setCustomName() not removing display NBT tag with empty name (#3049)

This commit is contained in:
Eren A. Akyol 2019-07-19 22:07:53 +03:00 committed by Dylan T
parent 26faf4a952
commit b788982d60

View File

@ -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 */