Paper/Spigot-Server-Patches/0094-Fix-SkullCache-case-bug.patch

23 Zeilen
1.1 KiB
Diff

2016-05-12 04:07:46 +02:00
From 4ab03fbd5648e5d5d8ffd5711a88ed34e80d3ad6 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
2016-05-12 04:07:46 +02:00
index 8aafd36..49ab25b 100644
--- a/src/main/java/net/minecraft/server/TileEntitySkull.java
+++ b/src/main/java/net/minecraft/server/TileEntitySkull.java
2016-05-12 04:07:46 +02:00
@@ -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 {
--
2016-05-12 04:07:46 +02:00
2.8.2