From efaf778680727464e4628039440c4d1dce988676 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Sat, 17 Dec 2022 00:46:46 -0700 Subject: [PATCH] Fix reobf issue in previous commit --- patches/server/Adventure.patch | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/patches/server/Adventure.patch b/patches/server/Adventure.patch index 3380915a16..7337e2e762 100644 --- a/patches/server/Adventure.patch +++ b/patches/server/Adventure.patch @@ -1710,12 +1710,11 @@ diff --git a/src/main/java/net/minecraft/network/chat/MessageSignature.java b/sr index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 --- a/src/main/java/net/minecraft/network/chat/MessageSignature.java +++ b/src/main/java/net/minecraft/network/chat/MessageSignature.java -@@ -0,0 +0,0 @@ import net.minecraft.util.ExtraCodecs; - import net.minecraft.util.SignatureUpdater; +@@ -0,0 +0,0 @@ import net.minecraft.util.SignatureUpdater; import net.minecraft.util.SignatureValidator; --public record MessageSignature(byte[] bytes) { -+public record MessageSignature(byte[] bytes) implements net.kyori.adventure.chat.SignedMessage.Signature { // Paper + public record MessageSignature(byte[] bytes) { ++ public net.kyori.adventure.chat.SignedMessage.Signature adventure() { return () -> this.bytes; } // Paper public static final Codec CODEC = ExtraCodecs.BASE64_STRING.xmap(MessageSignature::new, MessageSignature::bytes); public static final int BYTES = 256; @@ -1804,7 +1803,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + } + @Override + public @org.jetbrains.annotations.Nullable Signature signature() { -+ return PlayerChatMessage.this.signature(); ++ return PlayerChatMessage.this.signature == null ? null : PlayerChatMessage.this.signature.adventure(); + } + @Override + public net.kyori.adventure.text.@org.jetbrains.annotations.Nullable Component unsignedContent() {