diff options
Diffstat (limited to 'Spigot-Server-Patches/0083-Fix-SkullCache-case-bug.patch')
-rw-r--r-- | Spigot-Server-Patches/0083-Fix-SkullCache-case-bug.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Spigot-Server-Patches/0083-Fix-SkullCache-case-bug.patch b/Spigot-Server-Patches/0083-Fix-SkullCache-case-bug.patch new file mode 100644 index 0000000000..9113bf809b --- /dev/null +++ b/Spigot-Server-Patches/0083-Fix-SkullCache-case-bug.patch @@ -0,0 +1,22 @@ +From b15951b4c90b25f3db552de1d9032a5daf99fc43 Mon Sep 17 00:00:00 2001 +From: Aikar <[email protected]> +Date: Tue, 5 Jan 2016 21:48:24 -0500 +Subject: [PATCH] Fix SkullCache case bug + + +diff --git a/src/main/java/net/minecraft/server/TileEntitySkull.java b/src/main/java/net/minecraft/server/TileEntitySkull.java +index 91ca4a279..edd6fb69e 100644 +--- a/src/main/java/net/minecraft/server/TileEntitySkull.java ++++ b/src/main/java/net/minecraft/server/TileEntitySkull.java +@@ -191,7 +191,7 @@ public class TileEntitySkull extends TileEntity implements ITickable { + } else if (MinecraftServer.getServer() == null) { + callback.apply(gameprofile); + } else { +- GameProfile profile = skinCache.getIfPresent(gameprofile.getName()); ++ GameProfile profile = skinCache.getIfPresent(gameprofile.getName().toLowerCase()); // Paper + if (profile != null && Iterables.getFirst(profile.getProperties().get("textures"), (Object) null) != null) { + callback.apply(profile); + } else { +-- +2.12.2.windows.2 + |