aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0102-Don-t-lookup-game-profiles-that-have-no-UUID-and-no-.patch
diff options
context:
space:
mode:
authorNassim Jahnke <[email protected]>2024-12-03 19:05:31 +0100
committerNassim Jahnke <[email protected]>2024-12-03 19:05:31 +0100
commitab9a3db5ba76384531ad52299344dea588a367b2 (patch)
tree7e91be513aa8e62596b332a159691d67f79323c7 /patches/server/0102-Don-t-lookup-game-profiles-that-have-no-UUID-and-no-.patch
parent172c7dc7e7ee96fceaa2586d9cd9d892184f9a39 (diff)
downloadPaper-ab9a3db5ba76384531ad52299344dea588a367b2.tar.gz
Paper-ab9a3db5ba76384531ad52299344dea588a367b2.zip
More work
Diffstat (limited to 'patches/server/0102-Don-t-lookup-game-profiles-that-have-no-UUID-and-no-.patch')
-rw-r--r--patches/server/0102-Don-t-lookup-game-profiles-that-have-no-UUID-and-no-.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/patches/server/0102-Don-t-lookup-game-profiles-that-have-no-UUID-and-no-.patch b/patches/server/0102-Don-t-lookup-game-profiles-that-have-no-UUID-and-no-.patch
new file mode 100644
index 0000000000..d99e7ec08b
--- /dev/null
+++ b/patches/server/0102-Don-t-lookup-game-profiles-that-have-no-UUID-and-no-.patch
@@ -0,0 +1,18 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Zach Brown <[email protected]>
+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
+index 197e2ec9f1445a8184d0dde0e9b02b39e3302b91..22ed1e67ccb358655fe74cd1b1e19415f4e5bdd7 100644
+--- a/src/main/java/net/minecraft/server/players/GameProfileCache.java
++++ b/src/main/java/net/minecraft/server/players/GameProfileCache.java
+@@ -89,6 +89,7 @@ public class GameProfileCache {
+ }
+ };
+
++ if (!org.apache.commons.lang3.StringUtils.isBlank(name)) // Paper - Don't lookup a profile with a blank name
+ repository.findProfilesByNames(new String[]{name}, profilelookupcallback);
+ GameProfile gameprofile = (GameProfile) atomicreference.get();
+