papermc/CraftBukkit-Patches/0102-Use-Provided-Case-for-Non-Existent-Offline-Players.patch
2015-05-18 16:56:05 -05:00

22 lines
917 B
Diff

From 174979c8f3bb1360fa9958fa3d0b04453824edae Mon Sep 17 00:00:00 2001
From: md_5 <git@md-5.net>
Date: Mon, 14 Apr 2014 09:46:20 +1000
Subject: [PATCH] Use Provided Case for Non Existent Offline Players
diff --git a/src/main/java/net/minecraft/server/UserCache.java b/src/main/java/net/minecraft/server/UserCache.java
index 39e4a16..71a0edc 100644
--- a/src/main/java/net/minecraft/server/UserCache.java
+++ b/src/main/java/net/minecraft/server/UserCache.java
@@ -142,7 +142,7 @@ public class UserCache {
this.e.remove(gameprofile);
this.e.addFirst(gameprofile);
} else {
- gameprofile = a(this.f, s1);
+ gameprofile = a(this.f, s); // Spigot - use correct case for offline players
if (gameprofile != null) {
this.a(gameprofile);
usercache_usercacheentry = (UserCache.UserCacheEntry) this.c.get(s1);
--
2.1.4