fix profile cache mappings

let me be OP god dammit!
This commit is contained in:
MiniDigger | Martin
2021-06-12 09:30:37 +02:00
parent 0891c7ab48
commit 86213ac1d2
3 changed files with 9 additions and 4 deletions

View File

@@ -63,9 +63,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
}
@Nullable
- public GameProfile getProfile(String s) {
+ public synchronized GameProfile getProfile(String s) { // Paper - synchronize
String s1 = s.toLowerCase(Locale.ROOT);
- public GameProfile get(String name) {
+ public synchronized GameProfile get(String name) { // Paper - synchronize
String s1 = name.toLowerCase(Locale.ROOT);
GameProfileCache.GameProfileInfo usercache_usercacheentry = (GameProfileCache.GameProfileInfo) this.profilesByName.get(s1);
boolean flag = false;
@@ -0,0 +0,0 @@ public class GameProfileCache {