geforkt von Mirrors/Paper
SPIGOT-4123: Fix display names cleared by plugins / serialization
Dieser Commit ist enthalten in:
Ursprung
f732acf24f
Commit
7357d7237a
@ -566,7 +566,7 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final void setDisplayName(String name) {
|
public final void setDisplayName(String name) {
|
||||||
this.displayName = new ChatComponentText(name);
|
this.displayName = (name == null) ? null : new ChatComponentText(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasDisplayName() {
|
public boolean hasDisplayName() {
|
||||||
@ -580,7 +580,7 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setLocalizedName(String name) {
|
public void setLocalizedName(String name) {
|
||||||
this.locName = new ChatComponentText(name);
|
this.locName = (name == null) ? null : new ChatComponentText(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren