2021-06-11 14:02:28 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Zach Brown <zach.brown@destroystokyo.com>
|
|
|
|
Date: Sat, 16 Jul 2016 19:11:17 -0500
|
|
|
|
Subject: [PATCH] Don't lookup game profiles that have no UUID and no name
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/players/GameProfileCache.java b/src/main/java/net/minecraft/server/players/GameProfileCache.java
|
2024-01-15 12:38:39 +01:00
|
|
|
index 1924757cec5d7f2d13ef35f9bbe1554d786713d7..f13b0143ad89386f8e8d350ebacf98f4f66f18a8 100644
|
2021-06-11 14:02:28 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/players/GameProfileCache.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/players/GameProfileCache.java
|
2023-12-28 21:47:57 +01:00
|
|
|
@@ -89,6 +89,7 @@ public class GameProfileCache {
|
2023-12-05 22:34:01 +01:00
|
|
|
}
|
|
|
|
};
|
2022-06-09 23:37:26 +02:00
|
|
|
|
2024-01-15 12:38:39 +01:00
|
|
|
+ if (!org.apache.commons.lang3.StringUtils.isBlank(name)) // Paper - Don't lookup a profile with a blank name
|
2023-12-05 22:34:01 +01:00
|
|
|
repository.findProfilesByNames(new String[]{name}, profilelookupcallback);
|
|
|
|
GameProfile gameprofile = (GameProfile) atomicreference.get();
|
2021-06-11 14:02:28 +02:00
|
|
|
|