Update tests

This commit is contained in:
basaigh 2024-02-07 23:10:29 +00:00
parent 7597e0e8e5
commit 8f1834d906
3 changed files with 4 additions and 3 deletions

View file

@ -92,7 +92,8 @@ public class MinecraftProtocolTest {
false, false,
null, null,
100 100
) ),
true
)) ))
); );

View file

@ -43,7 +43,7 @@ public class MinecraftProtocolTest {
null, null,
false 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; private static Server server;

View file

@ -23,6 +23,6 @@ public class ClientboundHelloPacketTest extends PacketTest {
byte[] verifyToken = new byte[4]; byte[] verifyToken = new byte[4];
new Random().nextBytes(verifyToken); new Random().nextBytes(verifyToken);
this.setPackets(new ClientboundHelloPacket("ServerID", keyPair.getPublic(), verifyToken)); this.setPackets(new ClientboundHelloPacket("ServerID", keyPair.getPublic(), verifyToken, true));
} }
} }