From 21b5eaf8fdbef940e2db295ebb6f3ab31362f260 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 23 Dec 2024 17:15:10 +1100 Subject: [PATCH] SPIGOT-7986: Fix inconsistency of serializing profiles with empty names --- .../java/org/bukkit/craftbukkit/profile/CraftPlayerProfile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/profile/CraftPlayerProfile.java b/src/main/java/org/bukkit/craftbukkit/profile/CraftPlayerProfile.java index 9c518881e..2e42cccd1 100644 --- a/src/main/java/org/bukkit/craftbukkit/profile/CraftPlayerProfile.java +++ b/src/main/java/org/bukkit/craftbukkit/profile/CraftPlayerProfile.java @@ -274,7 +274,7 @@ public final class CraftPlayerProfile implements PlayerProfile { map.put("uniqueId", this.uniqueId.toString()); } if (this.name != null) { - map.put("name", getName()); + map.put("name", this.name); } rebuildDirtyProperties(); if (!this.properties.isEmpty()) {