mirror of
https://github.com/PaperMC/Waterfall.git
synced 2024-09-30 07:27:28 +02:00
85c0a35f0b
Upstream has released updates that appears to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing BungeeCord Changes: 6613aaea Add test fix for library classes being visible to non-dependent plugins 53ce6b93 #3200: Fix protocol for 21w40a d8e29384 #2466: Use switch in "BungeeCord" plugin message handling 5cf869df #3198: Remove terminally deprecated SecurityManager f26f7d88 Add optional 1.18 (21w40a) snapshot protocol support
27 lines
941 B
Diff
27 lines
941 B
Diff
From fc0f551fca8e045d1f1b4ade8c4358b0215abbb9 Mon Sep 17 00:00:00 2001
|
|
From: Shane Freeder <theboyetronic@gmail.com>
|
|
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.30.1 (Apple Git-130)
|
|
|