Skip to content

Commit 9c39bee

Browse files
committed
Fix tests again
1 parent c94a8b8 commit 9c39bee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example/src/main/java/org/geysermc/mcprotocollib/protocol/example/MinecraftProtocolTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ private static void login() {
220220
@Override
221221
public void packetReceived(Session session, Packet packet) {
222222
if (packet instanceof ClientboundLoginPacket) {
223-
session.send(new ServerboundChatPacket("Hello, this is a test of MCProtocolLib.", Instant.now().toEpochMilli(), 0L, null, 0, new BitSet()));
223+
session.send(new ServerboundChatPacket("Hello, this is a test of MCProtocolLib.", Instant.now().toEpochMilli(), 0L, null, 0, new BitSet(), 0));
224224
} else if (packet instanceof ClientboundSystemChatPacket systemChatPacket) {
225225
Component message = systemChatPacket.getContent();
226226
log.info("Received Message: {}", message);

protocol/src/main/java/org/geysermc/mcprotocollib/protocol/packet/ingame/serverbound/ServerboundChatPacket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class ServerboundChatPacket implements MinecraftPacket {
2121
private final byte @Nullable [] signature;
2222
private final int offset;
2323
private final BitSet acknowledgedMessages;
24-
private final byte checksum;
24+
private final int checksum;
2525

2626
public ServerboundChatPacket(ByteBuf in) {
2727
this.message = MinecraftTypes.readString(in);

0 commit comments

Comments
 (0)