mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-08 20:02:31 +01:00
812618deba
Unintended side effects in recent versions, this patch has likely outlived its usefulness. Closes GH-452
23 lines
1.1 KiB
Diff
23 lines
1.1 KiB
Diff
From d6d1dc0c6e2103a1569f0347817be71316faaf8c Mon Sep 17 00:00:00 2001
|
|
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
|
|
index 654b51d..a8adbcb 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.9.3
|
|
|