From 6d0a86a9b60dee24482fe5cd064dfee129ced0dd Mon Sep 17 00:00:00 2001 From: Techcable Date: Tue, 11 Aug 2015 01:27:18 -0500 Subject: [PATCH] Use the server usercache for player heads --- .../0072-Use-UserCache-for-player-heads.patch | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Spigot-Server-Patches/0072-Use-UserCache-for-player-heads.patch diff --git a/Spigot-Server-Patches/0072-Use-UserCache-for-player-heads.patch b/Spigot-Server-Patches/0072-Use-UserCache-for-player-heads.patch new file mode 100644 index 0000000..9299c31 --- /dev/null +++ b/Spigot-Server-Patches/0072-Use-UserCache-for-player-heads.patch @@ -0,0 +1,23 @@ +From 6dd08c1be604a9ad98efafa34b8de83bf4412127 Mon Sep 17 00:00:00 2001 +From: Techcable +Date: Fri, 7 Aug 2015 19:31:31 -0700 +Subject: [PATCH] Use UserCache for player heads + + +diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java +index ce5425f..e8460bf 100644 +--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java ++++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java +@@ -132,7 +132,8 @@ class CraftMetaSkull extends CraftMetaItem implements SkullMeta { + if (name == null) { + profile = null; + } else { +- profile = new GameProfile(null, name); ++ // PaperSpigot - Check usercache for the profile ++ profile = net.minecraft.server.MinecraftServer.getServer().getUserCache().getProfile(name); + } + + return true; +-- +2.5.0 +