mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Item: fixed setCustomName() not removing display NBT tag with empty name (#3049)
This commit is contained in:
@ -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 */
|
||||
|
Reference in New Issue
Block a user