Automate the stress testing of a Minecraft server network using bots

Update to 1.19.2

Changed files
+2 -2
src
main
java
com
github
puregero
minecraftstresstest
+2 -2
src/main/java/com/github/puregero/minecraftstresstest/Bot.java
··· 189 189 keepAlivePacket.writeVarInt(0x12); 190 190 keepAlivePacket.writeLong(id); 191 191 ctx.writeAndFlush(keepAlivePacket); 192 - } else if (packetId == 0x2D) { 192 + } else if (packetId == 0x2F) { 193 193 int id = byteBuf.readInt(); 194 194 195 195 FriendlyByteBuf keepAlivePacket = new FriendlyByteBuf(ctx.alloc().buffer()); 196 - keepAlivePacket.writeVarInt(0x1F); 196 + keepAlivePacket.writeVarInt(0x20); 197 197 keepAlivePacket.writeInt(id); 198 198 ctx.writeAndFlush(keepAlivePacket); 199 199 } else if (packetId == 0x39) {