0
0
mirror of https://github.com/PaperMC/Paper.git synced 2025-11-08 10:56:44 +00:00
Files
Lulu13022002 ffcb7b2209 Update Parchment (#13177)
Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
Co-authored-by: Pedro <3602279+Doc94@users.noreply.github.com>
2025-10-13 12:55:54 -07:00

14 lines
513 B
Diff

--- a/net/minecraft/server/players/NameAndId.java
+++ b/net/minecraft/server/players/NameAndId.java
@@ -49,4 +_,10 @@
UUID uuid = UUIDUtil.createOfflinePlayerUUID(name);
return new NameAndId(uuid, name);
}
+
+ // Paper start - utility method for common conversion back to the game profile
+ public GameProfile toUncompletedGameProfile() {
+ return new GameProfile(this.id, this.name);
+ }
+ // Paper end - utility method for common conversion back to the game profile
}