From dc044fb909a79dbbb6f9107c37d0040f221fd862 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Fri, 9 Jul 2021 13:21:05 +0100 Subject: [PATCH] Don't bother locking to fetch a v4 UUID from the offline UUIDs map --- ...king-to-fetch-a-v4-UUID-from-the-off.patch | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 BungeeCord-Patches/0061-Don-t-bother-locking-to-fetch-a-v4-UUID-from-the-off.patch diff --git a/BungeeCord-Patches/0061-Don-t-bother-locking-to-fetch-a-v4-UUID-from-the-off.patch b/BungeeCord-Patches/0061-Don-t-bother-locking-to-fetch-a-v4-UUID-from-the-off.patch new file mode 100644 index 0000000..95ce31d --- /dev/null +++ b/BungeeCord-Patches/0061-Don-t-bother-locking-to-fetch-a-v4-UUID-from-the-off.patch @@ -0,0 +1,26 @@ +From f9db6489a6b0b0d77a13ebebb2a67f321d346ea4 Mon Sep 17 00:00:00 2001 +From: Shane Freeder +Date: Fri, 9 Jul 2021 13:20:36 +0100 +Subject: [PATCH] Don't bother locking to fetch a v4 UUID from the offline + UUIDs map + + +diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java +index c7b0ab25..07d74c67 100644 +--- a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java ++++ b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java +@@ -613,6 +613,11 @@ public class BungeeCord extends ProxyServer + + public UserConnection getPlayerByOfflineUUID(UUID name) + { ++ // Waterfall start - Skip lock if we get a v4 UUID, we're not gonna be in here ++ if (name != null && name.version() == 4) { ++ return null; ++ } ++ // Waterfall end + connectionLock.readLock().lock(); + try + { +-- +2.32.0 +