mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
Fix missed change inside of CraftSkullMeta
This commit is contained in:
parent
d9dc31cb93
commit
d8e8748f70
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue