From 99915acb8b391287f0562de4305631ee8830356a Mon Sep 17 00:00:00 2001 From: Sergey Shatunov Date: Tue, 5 Jan 2016 15:06:32 +0700 Subject: [PATCH] Use player cache for skulls --- .../java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java index ed2ff4a..dcefc9b 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java @@ -97,7 +97,8 @@ class CraftMetaSkull extends CraftMetaItem implements SkullMeta { if (name == null) { profile = null; } else { - profile = new GameProfile(null, name); + profile = net.minecraft.server.MinecraftServer.getServer().func_152358_ax().func_152655_a(name); + if (profile == null) profile = new GameProfile(null, name); } return true;