2020-06-28 23:37:31 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
Date: Sun, 28 Jun 2020 19:36:55 -0400
|
|
|
|
Subject: [PATCH] Don't allow null UUID's for chat
|
|
|
|
|
|
|
|
|
2021-03-16 07:19:45 +00:00
|
|
|
diff --git a/src/main/java/net/minecraft/network/protocol/game/PacketPlayOutChat.java b/src/main/java/net/minecraft/network/protocol/game/PacketPlayOutChat.java
|
|
|
|
index d4cf5536883192c49636177cb782a9a2f514cd87..f3cd2b585c6cf1cf948de49a5608e04ee6eb9aab 100644
|
|
|
|
--- a/src/main/java/net/minecraft/network/protocol/game/PacketPlayOutChat.java
|
|
|
|
+++ b/src/main/java/net/minecraft/network/protocol/game/PacketPlayOutChat.java
|
|
|
|
@@ -20,7 +20,7 @@ public class PacketPlayOutChat implements Packet<PacketListenerPlayOut> {
|
2020-06-28 23:37:31 +00:00
|
|
|
public PacketPlayOutChat(IChatBaseComponent ichatbasecomponent, ChatMessageType chatmessagetype, UUID uuid) {
|
|
|
|
this.a = ichatbasecomponent;
|
|
|
|
this.b = chatmessagetype;
|
|
|
|
- this.c = uuid;
|
|
|
|
+ this.c = uuid != null ? uuid : SystemUtils.getNullUUID(); // Paper
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|