From 816fccea08834b461ec4a9733662f0cc816b8aa3 Mon Sep 17 00:00:00 2001 From: Aikar Date: Mon, 21 Mar 2016 23:38:24 -0400 Subject: [PATCH] Fix skull cache case bug missing cache hits on players with uppercase letters in name --- .../0103-Fix-SkullCache-case-bug.patch | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Spigot-Server-Patches/0103-Fix-SkullCache-case-bug.patch diff --git a/Spigot-Server-Patches/0103-Fix-SkullCache-case-bug.patch b/Spigot-Server-Patches/0103-Fix-SkullCache-case-bug.patch new file mode 100644 index 000000000..64fe23305 --- /dev/null +++ b/Spigot-Server-Patches/0103-Fix-SkullCache-case-bug.patch @@ -0,0 +1,22 @@ +From d678f15b16b80141937b2890fa1fd0bac5e54fb7 Mon Sep 17 00:00:00 2001 +From: Aikar +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 7eecc6c..3c20ef3 100644 +--- a/src/main/java/net/minecraft/server/TileEntitySkull.java ++++ b/src/main/java/net/minecraft/server/TileEntitySkull.java +@@ -186,7 +186,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.7.4 +