mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 02:55:47 +01:00
4e958e229f
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com> Co-authored-by: zml <zml@stellardrift.ca> Co-authored-by: Mariell Hoversholm <proximyst@proximyst.com>
20 lines
949 B
Diff
20 lines
949 B
Diff
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
|
|
index 18528c792ae12bd8753e8529f4b73b76407e67dc..f7019e874ae4d654fad115de80c307287ad180f3 100644
|
|
--- a/src/main/java/net/minecraft/server/PacketPlayOutChat.java
|
|
+++ b/src/main/java/net/minecraft/server/PacketPlayOutChat.java
|
|
@@ -16,7 +16,7 @@ public class PacketPlayOutChat implements Packet<PacketListenerPlayOut> {
|
|
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
|