Fix reobf issue in previous commit

This commit is contained in:
Jason Penilla 2022-12-17 00:46:46 -07:00
parent 1de7f28233
commit efaf778680

View file

@ -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<MessageSignature> 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() {