Fixed receiving signed chat

This commit is contained in:
LOOHP
2022-12-16 13:43:13 +00:00
parent 35c6b748c9
commit 69bd4a8f6f
5 changed files with 92 additions and 127 deletions
@@ -45,7 +45,7 @@ public class PacketPlayInChat extends PacketIn {
}
public PacketPlayInChat(DataInputStream in) throws IOException {
this(DataTypeIO.readString(in, StandardCharsets.UTF_8), Instant.ofEpochMilli(in.readLong()), in.readLong(), in.readBoolean() ? new MessageSignature(in) : null, new LastSeenMessages.b(in));
this(DataTypeIO.readString(in, StandardCharsets.UTF_8), Instant.ofEpochMilli(in.readLong()), in.readLong(), in.readBoolean() ? MessageSignature.read(in) : null, new LastSeenMessages.b(in));
}
public String getMessage() {