mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-17 06:48:23 +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
|
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
|
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java
|
||||||
+++ b/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;
|
@@ -0,0 +0,0 @@ import net.minecraft.server.GameProfileSerializer;
|
||||||
|
@ -25,7 +25,7 @@ index b6b34627a..5659c1c70 100644
|
||||||
+ GameProfile newProfile = null;
|
+ GameProfile newProfile = null;
|
||||||
+ EntityPlayer player = MinecraftServer.getServer().getPlayerList().getPlayer(name);
|
+ EntityPlayer player = MinecraftServer.getServer().getPlayerList().getPlayer(name);
|
||||||
+ if (player != null) newProfile = player.getProfile();
|
+ if (player != null) newProfile = player.getProfile();
|
||||||
+ if (newProfile == null) profile = new GameProfile(null, name);
|
+ if (newProfile == null) newProfile = new GameProfile(null, name);
|
||||||
+ profile = newProfile;
|
+ profile = newProfile;
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue