mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 10:44:39 +01:00
Use provided case for non-existent OfflinePlayers
Fixes issues with using scoreboards to provide information via pseudo players being all lowercased.
Ported from Spigot commit e11d481452
By: md_5 <git@md-5.net>
This commit is contained in:
parent
61052d56b5
commit
d19f0e9b26
1 changed files with 10 additions and 6 deletions
|
@ -1,11 +1,6 @@
|
|||
--- a/net/minecraft/server/players/UserCache.java
|
||||
+++ b/net/minecraft/server/players/UserCache.java
|
||||
@@ -1,3 +1,4 @@
|
||||
+// mc-dev import
|
||||
package net.minecraft.server.players;
|
||||
|
||||
import com.google.common.collect.ImmutableList;
|
||||
@@ -85,7 +86,7 @@
|
||||
@@ -85,7 +85,7 @@
|
||||
}
|
||||
|
||||
public void onProfileLookupFailed(String s1, Exception exception) {
|
||||
|
@ -14,3 +9,12 @@
|
|||
}
|
||||
};
|
||||
|
||||
@@ -142,7 +142,7 @@
|
||||
usercache_usercacheentry.setLastAccess(this.getNextOperation());
|
||||
optional = Optional.of(usercache_usercacheentry.getProfile());
|
||||
} else {
|
||||
- optional = lookupGameProfile(this.profileRepository, s1);
|
||||
+ optional = lookupGameProfile(this.profileRepository, s); // CraftBukkit - use correct case for offline players
|
||||
if (optional.isPresent()) {
|
||||
this.add((GameProfile) optional.get());
|
||||
flag = false;
|
||||
|
|
Loading…
Reference in a new issue