From 2969d51f7254205dca1692d6506f2a1715753f7c Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Sat, 29 Jul 2023 13:39:13 +0200 Subject: [PATCH] Don't use random UUID for custom player heads --- .../src/main/java/fr/pandacube/lib/paper/util/Skull.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/util/Skull.java b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/util/Skull.java index fdd3f3b..875c547 100644 --- a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/util/Skull.java +++ b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/util/Skull.java @@ -167,7 +167,7 @@ public enum Skull { SkullMeta headMeta = (SkullMeta) head.getItemMeta(); - PlayerProfile profile = Bukkit.createProfile(UUID.randomUUID()); + PlayerProfile profile = Bukkit.createProfile(UUID.nameUUIDFromBytes(str.getBytes())); profile.setProperty(new ProfileProperty("textures", str)); headMeta.setPlayerProfile(profile);