2017-05-04 23:08:52 +00:00
|
|
|
From a2147b31bd1fb9437f7c1798dfbe54094c5e63b6 Mon Sep 17 00:00:00 2001
|
2016-03-22 03:38:24 +00:00
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
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
|
2017-03-25 05:22:02 +00:00
|
|
|
index 91ca4a279..edd6fb69e 100644
|
2016-03-22 03:38:24 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/TileEntitySkull.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/TileEntitySkull.java
|
2016-05-12 02:07:46 +00:00
|
|
|
@@ -191,7 +191,7 @@ public class TileEntitySkull extends TileEntity implements ITickable {
|
2016-03-22 03:38:24 +00:00
|
|
|
} 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 {
|
|
|
|
--
|
2017-05-04 23:08:52 +00:00
|
|
|
2.12.2
|
2016-03-22 03:38:24 +00:00
|
|
|
|