SPIGOT-7986: Fix inconsistency of serializing profiles with empty names
This commit is contained in:
parent
372dea1f6e
commit
21b5eaf8fd
@ -274,7 +274,7 @@ public final class CraftPlayerProfile implements PlayerProfile {
|
|||||||
map.put("uniqueId", this.uniqueId.toString());
|
map.put("uniqueId", this.uniqueId.toString());
|
||||||
}
|
}
|
||||||
if (this.name != null) {
|
if (this.name != null) {
|
||||||
map.put("name", getName());
|
map.put("name", this.name);
|
||||||
}
|
}
|
||||||
rebuildDirtyProperties();
|
rebuildDirtyProperties();
|
||||||
if (!this.properties.isEmpty()) {
|
if (!this.properties.isEmpty()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user