Fix missed change inside of CraftSkullMeta

This commit is contained in:
Shane Freeder 2018-06-10 12:45:04 +01:00
parent d9dc31cb93
commit d8e8748f70

View file

@ -5,7 +5,7 @@ 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 b6b34627a..5659c1c70 100644
index b6b34627a..862b30286 100644
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java
@@ -0,0 +0,0 @@ import net.minecraft.server.GameProfileSerializer;
@ -25,7 +25,7 @@ index b6b34627a..5659c1c70 100644
+ GameProfile newProfile = null;
+ EntityPlayer player = MinecraftServer.getServer().getPlayerList().getPlayer(name);
+ if (player != null) newProfile = player.getProfile();
+ if (newProfile == null) profile = new GameProfile(null, name);
+ if (newProfile == null) newProfile = new GameProfile(null, name);
+ profile = newProfile;
+ // Paper end
}