mirror of
https://github.com/PaperMC/Waterfall.git
synced 2024-09-16 08:36:35 +02:00
27 lines
925 B
Diff
27 lines
925 B
Diff
From 5deaeab7db1364d5ff2125d569af60c3e90072c2 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.32.0
|
|
|