diff options
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java index 15e114df..2fe10005 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java @@ -36,7 +36,7 @@ class CraftMetaSkull extends CraftMetaItem implements SkullMeta { if (tag.hasKeyOfType(SKULL_OWNER.NBT, 10)) { profile = GameProfileSerializer.a(tag.getCompound(SKULL_OWNER.NBT)); } else if (tag.hasKeyOfType(SKULL_OWNER.NBT, 8)) { - profile = MinecraftServer.getServer().getUserCache().a(tag.getString(SKULL_OWNER.NBT)); + profile = new GameProfile(null, tag.getString(SKULL_OWNER.NBT)); } } @@ -93,12 +93,12 @@ class CraftMetaSkull extends CraftMetaItem implements SkullMeta { return false; } - GameProfile profile = MinecraftServer.getServer().getUserCache().a(name); - if (profile == null) { - return false; + if (name == null) { + profile = null; + } else { + profile = new GameProfile(null, name); } - this.profile = profile; return true; } |