From 8f1834d906d98509b011e37c2118913474644114 Mon Sep 17 00:00:00 2001 From: basaigh <53559772+basaigh@users.noreply.github.com> Date: Wed, 7 Feb 2024 23:10:29 +0000 Subject: [PATCH] Update tests --- .../steveice10/mc/protocol/test/MinecraftProtocolTest.java | 3 ++- .../github/steveice10/mc/protocol/MinecraftProtocolTest.java | 2 +- .../packet/login/clientbound/ClientboundHelloPacketTest.java | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/example/src/main/java/com/github/steveice10/mc/protocol/test/MinecraftProtocolTest.java b/example/src/main/java/com/github/steveice10/mc/protocol/test/MinecraftProtocolTest.java index df06fffa..9ea72bf0 100644 --- a/example/src/main/java/com/github/steveice10/mc/protocol/test/MinecraftProtocolTest.java +++ b/example/src/main/java/com/github/steveice10/mc/protocol/test/MinecraftProtocolTest.java @@ -92,7 +92,8 @@ public class MinecraftProtocolTest { false, null, 100 - ) + ), + true )) ); diff --git a/src/test/java/com/github/steveice10/mc/protocol/MinecraftProtocolTest.java b/src/test/java/com/github/steveice10/mc/protocol/MinecraftProtocolTest.java index d63b698f..abae0f00 100644 --- a/src/test/java/com/github/steveice10/mc/protocol/MinecraftProtocolTest.java +++ b/src/test/java/com/github/steveice10/mc/protocol/MinecraftProtocolTest.java @@ -43,7 +43,7 @@ public class MinecraftProtocolTest { null, false ); - private static final ClientboundLoginPacket JOIN_GAME_PACKET = new ClientboundLoginPacket(0, false, new String[]{"minecraft:world"}, 0, 16, 16, false, false, false, new PlayerSpawnInfo("overworld", "minecraft:world", 100, GameMode.SURVIVAL, GameMode.SURVIVAL, false, false, null, 100)); + private static final ClientboundLoginPacket JOIN_GAME_PACKET = new ClientboundLoginPacket(0, false, new String[]{"minecraft:world"}, 0, 16, 16, false, false, false, new PlayerSpawnInfo("overworld", "minecraft:world", 100, GameMode.SURVIVAL, GameMode.SURVIVAL, false, false, null, 100), true); private static Server server; diff --git a/src/test/java/com/github/steveice10/mc/protocol/packet/login/clientbound/ClientboundHelloPacketTest.java b/src/test/java/com/github/steveice10/mc/protocol/packet/login/clientbound/ClientboundHelloPacketTest.java index 56ea8ca0..1ef5c3f6 100644 --- a/src/test/java/com/github/steveice10/mc/protocol/packet/login/clientbound/ClientboundHelloPacketTest.java +++ b/src/test/java/com/github/steveice10/mc/protocol/packet/login/clientbound/ClientboundHelloPacketTest.java @@ -23,6 +23,6 @@ public class ClientboundHelloPacketTest extends PacketTest { byte[] verifyToken = new byte[4]; new Random().nextBytes(verifyToken); - this.setPackets(new ClientboundHelloPacket("ServerID", keyPair.getPublic(), verifyToken)); + this.setPackets(new ClientboundHelloPacket("ServerID", keyPair.getPublic(), verifyToken, true)); } }