Add MCUtils helper
This will be used by my next commit. But trying to get the build going since CI blew up
This commit is contained in:
22
Spigot-Server-Patches/0102-Fix-SkullCache-case-bug.patch
Normal file
22
Spigot-Server-Patches/0102-Fix-SkullCache-case-bug.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
From 25f458b42dc059d51743f85b6340048c777b7552 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 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
|
||||
|
||||
Reference in New Issue
Block a user