2020-06-29 01:37:31 +02: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
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/PacketPlayOutChat.java b/src/main/java/net/minecraft/server/PacketPlayOutChat.java
|
2021-02-21 20:45:33 +01:00
|
|
|
index 18528c792ae12bd8753e8529f4b73b76407e67dc..f7019e874ae4d654fad115de80c307287ad180f3 100644
|
2020-06-29 01:37:31 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/PacketPlayOutChat.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PacketPlayOutChat.java
|
2021-02-21 20:45:33 +01:00
|
|
|
@@ -16,7 +16,7 @@ public class PacketPlayOutChat implements Packet<PacketListenerPlayOut> {
|
2020-06-29 01:37:31 +02: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
|