Waterfall/Waterfall-Proxy-Patches/0016-Don-t-declare-uuid-unless-it-s-null.patch

26 lines
1.1 KiB
Diff
Raw Normal View History

2022-08-12 15:11:18 +02:00
From dc8d4b51d88b9f0e6086def5aa4f5c3da5e00be6 Mon Sep 17 00:00:00 2001
2020-12-16 11:44:19 +01:00
From: foss-mc <69294560+foss-mc@users.noreply.github.com>
Date: Wed, 16 Dec 2020 18:43:17 +0800
Subject: [PATCH] Don't declare uuid unless it's null
diff --git a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
2022-08-12 15:11:18 +02:00
index 0e94d411..76b10bb3 100644
2020-12-16 11:44:19 +01:00
--- a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
+++ b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
2022-08-12 15:11:18 +02:00
@@ -558,7 +558,10 @@ public class InitialHandler extends PacketHandler implements PendingConnection
2020-12-16 11:44:19 +01:00
{
loginProfile = obj;
name = obj.getName();
- uniqueId = Util.getUUID( obj.getId() );
+ // FlameCord - Don't declare uuid unless it's null
+ if (uniqueId == null) {
+ uniqueId = Util.getUUID(obj.getId());
+ }
finish();
return;
}
--
2.37.0.windows.1
2020-12-16 11:44:19 +01:00