mircokroon / minecraft-world-downloader

Download Minecraft worlds, extend server's render distance. 1.12.2 - 1.21
GNU General Public License v3.0
1.25k stars 84 forks source link

1.20.4 Support #645

Open jaac-dev opened 9 months ago

jaac-dev commented 9 months ago

1.20.4 Support

Packets definitions are out of date for 1.20.4.

Log

java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
    at packets.DataReader.readVarInt(DataReader.java:70)
    at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
    at game.data.entity.EntityRegistry.destroyEntities(EntityRegistry.java:187)
    at packets.handler.ClientBoundGamePacketHandler.lambda$new$5(ClientBoundGamePacketHandler.java:60)
    at packets.handler.PacketHandler.handle(PacketHandler.java:57)
    at packets.DataReader.readPackets(DataReader.java:163)
    at packets.DataReader.pushData(DataReader.java:118)
    at proxy.ProxyServer.lambda$run$7(ProxyServer.java:106)
    at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
    at proxy.ProxyServer.lambda$run$9(ProxyServer.java:103)
    at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
    at proxy.ProxyServer.run(ProxyServer.java:62)

 java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
    at packets.DataReader.readVarInt(DataReader.java:70)
    at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
    at game.data.entity.EntityRegistry.destroyEntities(EntityRegistry.java:187)
    at packets.handler.ClientBoundGamePacketHandler.lambda$new$5(ClientBoundGamePacketHandler.java:60)
    at packets.handler.PacketHandler.handle(PacketHandler.java:57)
    at packets.DataReader.readPackets(DataReader.java:163)
    at packets.DataReader.pushData(DataReader.java:118)
    at proxy.ProxyServer.lambda$run$7(ProxyServer.java:106)
    at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
    at proxy.ProxyServer.lambda$run$9(ProxyServer.java:103)
    at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
    at proxy.ProxyServer.run(ProxyServer.java:62)

    at game.data.entity.PlayerEntity.parse(PlayerEntity.java:22)
    at game.data.entity.EntityRegistry.lambda$addPlayer$6(EntityRegistry.java:88)
    at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
    at util.ExceptionHandling.attempt(ExceptionHandling.java:22)

    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:833)

 java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 17 out of bounds for byte[9]
    at java.base/java.lang.System.arraycopy(Native Method)
    at packets.DataTypeProvider.readByteArray(DataTypeProvider.java:90)
    at packets.DataTypeProvider.readDouble(DataTypeProvider.java:216)
    at packets.handler.ServerBoundGamePacketHandler.lambda$new$0(ServerBoundGamePacketHandler.java:20)
    at packets.handler.ServerBoundGamePacketHandler.lambda$new$2(ServerBoundGamePacketHandler.java:37)
    at packets.handler.PacketHandler.handle(PacketHandler.java:57)
    at packets.DataReader.readPackets(DataReader.java:163)
    at packets.DataReader.pushData(DataReader.java:118)
    at proxy.ProxyServer.lambda$run$4(ProxyServer.java:86)
    at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
    at proxy.ProxyServer.lambda$run$6(ProxyServer.java:83)
    at java.base/java.lang.Thread.run(Thread.java:833)

 java.lang.ArrayIndexOutOfBoundsException: Index 9 out of bounds for length 9
    at packets.DataTypeProvider.readNext(DataTypeProvider.java:76)
    at packets.DataTypeProvider$1.read(DataTypeProvider.java:198)
    at java.base/java.io.DataInputStream.readByte(DataInputStream.java:271)
    at se.llbit.nbt.NamedTag.read(NamedTag.java:54)
    at packets.DataTypeProvider.readNbtTag(DataTypeProvider.java:195)
    at game.data.chunk.version.Chunk_1_14.parseHeightMaps(Chunk_1_14.java:62)
    at game.data.chunk.version.Chunk_1_18.parse(Chunk_1_18.java:49)
    at game.data.chunk.ChunkFactory.parseChunk(ChunkFactory.java:127)
    at game.data.chunk.ChunkFactory.readChunkDataPacket(ChunkFactory.java:144)
    at game.data.chunk.ChunkFactory.parse(ChunkFactory.java:104)
    at game.data.chunk.ChunkFactory.lambda$addChunk$9(ChunkFactory.java:91)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:833)
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
    at packets.DataReader.readVarInt(DataReader.java:70)
    at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
    at game.data.chunk.version.Chunk_1_18.parse(Chunk_1_18.java:51)
    at game.data.chunk.ChunkFactory.parseChunk(ChunkFactory.java:127)
    at game.data.chunk.ChunkFactory.readChunkDataPacket(ChunkFactory.java:144)
    at game.data.chunk.ChunkFactory.parse(ChunkFactory.java:104)

 java.lang.ArrayIndexOutOfBoundsException
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
    at packets.DataReader.readVarInt(DataReader.java:70)
    at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
    at game.data.chunk.version.Chunk_1_18.parse(Chunk_1_18.java:51)
    at game.data.chunk.ChunkFactory.parseChunk(ChunkFactory.java:127)
    at game.data.chunk.ChunkFactory.readChunkDataPacket(ChunkFactory.java:144)
    at game.data.chunk.ChunkFactory.parse(ChunkFactory.java:104)
    at game.data.chunk.ChunkFactory.lambda$addChunk$9(ChunkFactory.java:91)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:833)
Chunk could not be parsed!
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 17 out of bounds for byte[9]
    at java.base/java.lang.System.arraycopy(Native Method)
    at packets.DataTypeProvider.readByteArray(DataTypeProvider.java:90)
    at packets.DataTypeProvider.readDouble(DataTypeProvider.java:216)
    at packets.handler.ServerBoundGamePacketHandler.lambda$new$0(ServerBoundGamePacketHandler.java:20)
    at packets.handler.ServerBoundGamePacketHandler.lambda$new$2(ServerBoundGamePacketHandler.java:37)
    at packets.handler.PacketHandler.handle(PacketHandler.java:57)
    at packets.DataReader.readPackets(DataReader.java:163)
    at packets.DataReader.pushData(DataReader.java:118)
    at proxy.ProxyServer.lambda$run$4(ProxyServer.java:86)
    at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
    at proxy.ProxyServer.lambda$run$6(ProxyServer.java:83)
    at java.base/java.lang.Thread.run(Thread.java:833)

 java.lang.ArrayIndexOutOfBoundsException
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
    at packets.DataReader.readVarInt(DataReader.java:70)
    at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
    at game.data.chunk.version.Chunk_1_18.parse(Chunk_1_18.java:51)
    at game.data.chunk.ChunkFactory.parseChunk(ChunkFactory.java:127)
    at game.data.chunk.ChunkFactory.readChunkDataPacket(ChunkFactory.java:144)
    at game.data.chunk.ChunkFactory.parse(ChunkFactory.java:104)
    at game.data.chunk.ChunkFactory.lambda$addChunk$9(ChunkFactory.java:91)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:833)
Chunk could not be parsed!
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 17 out of bounds for byte[9]
    at java.base/java.lang.System.arraycopy(Native Method)
    at packets.DataTypeProvider.readByteArray(DataTypeProvider.java:90)
    at packets.DataTypeProvider.readDouble(DataTypeProvider.java:216)
    at packets.handler.ServerBoundGamePacketHandler.lambda$new$0(ServerBoundGamePacketHandler.java:20)
    at packets.handler.ServerBoundGamePacketHandler.lambda$new$2(ServerBoundGamePacketHandler.java:37)
    at packets.handler.PacketHandler.handle(PacketHandler.java:57)
    at packets.DataReader.readPackets(DataReader.java:163)
    at packets.DataReader.pushData(DataReader.java:118)
    at proxy.ProxyServer.lambda$run$4(ProxyServer.java:86)
    at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
    at proxy.ProxyServer.lambda$run$6(ProxyServer.java:83)
    at java.base/java.lang.Thread.run(Thread.java:833)

 java.lang.ArrayIndexOutOfBoundsException
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
    at packets.DataReader.readVarInt(DataReader.java:70)
    at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
    at game.data.chunk.version.Chunk_1_18.parse(Chunk_1_18.java:51)
    at game.data.chunk.ChunkFactory.parseChunk(ChunkFactory.java:127)
    at game.data.chunk.ChunkFactory.readChunkDataPacket(ChunkFactory.java:144)
    at game.data.chunk.ChunkFactory.parse(ChunkFactory.java:104)
    at game.data.chunk.ChunkFactory.lambda$addChunk$9(ChunkFactory.java:91)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:833)
Chunk could not be parsed!
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 17 out of bounds for byte[9]
    at java.base/java.lang.System.arraycopy(Native Method)
    at packets.DataTypeProvider.readByteArray(DataTypeProvider.java:90)
    at packets.DataTypeProvider.readDouble(DataTypeProvider.java:216)
    at packets.handler.ServerBoundGamePacketHandler.lambda$new$0(ServerBoundGamePacketHandler.java:20)
    at packets.handler.ServerBoundGamePacketHandler.lambda$new$2(ServerBoundGamePacketHandler.java:37)
    at packets.handler.PacketHandler.handle(PacketHandler.java:57)
    at packets.DataReader.readPackets(DataReader.java:163)
    at packets.DataReader.pushData(DataReader.java:118)
    at proxy.ProxyServer.lambda$run$4(ProxyServer.java:86)
    at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
    at proxy.ProxyServer.lambda$run$6(ProxyServer.java:83)
    at java.base/java.lang.Thread.run(Thread.java:833)

 java.lang.ArrayIndexOutOfBoundsException
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
    at packets.DataReader.readVarInt(DataReader.java:70)
    at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
    at game.data.chunk.version.Chunk_1_18.parse(Chunk_1_18.java:51)
    at game.data.chunk.ChunkFactory.parseChunk(ChunkFactory.java:127)
    at game.data.chunk.ChunkFactory.readChunkDataPacket(ChunkFactory.java:144)
    at game.data.chunk.ChunkFactory.parse(ChunkFactory.java:104)
    at game.data.chunk.ChunkFactory.lambda$addChunk$9(ChunkFactory.java:91)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:833)
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 17 out of bounds for byte[9]
    at java.base/java.lang.System.arraycopy(Native Method)
    at packets.DataTypeProvider.readByteArray(DataTypeProvider.java:90)
    at packets.DataTypeProvider.readDouble(DataTypeProvider.java:216)
    at packets.handler.ServerBoundGamePacketHandler.lambda$new$0(ServerBoundGamePacketHandler.java:20)
    at packets.handler.ServerBoundGamePacketHandler.lambda$new$2(ServerBoundGamePacketHandler.java:37)
    at packets.handler.PacketHandler.handle(PacketHandler.java:57)
    at packets.DataReader.readPackets(DataReader.java:163)
    at packets.DataReader.pushData(DataReader.java:118)
    at proxy.ProxyServer.lambda$run$4(ProxyServer.java:86)
    at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
    at proxy.ProxyServer.lambda$run$6(ProxyServer.java:83)
    at java.base/java.lang.Thread.run(Thread.java:833)
Chunk could not be parsed!

 java.lang.ArrayIndexOutOfBoundsException
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
    at packets.DataReader.readVarInt(DataReader.java:70)
    at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)

 java.lang.ArrayIndexOutOfBoundsException

 java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 12 out of bounds for byte[5]

 java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 12 out of bounds for byte[5]
    at java.base/java.lang.System.arraycopy(Native Method)
    at packets.DataTypeProvider.readByteArray(DataTypeProvider.java:90)
    at packets.DataTypeProvider.readLong(DataTypeProvider.java:155)

 java.lang.ArrayIndexOutOfBoundsException
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
    at packets.DataReader.readVarInt(DataReader.java:70)
    at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
    at game.data.chunk.version.Chunk_1_18.parse(Chunk_1_18.java:51)
    at game.data.chunk.ChunkFactory.parseChunk(ChunkFactory.java:127)
    at game.data.chunk.ChunkFactory.readChunkDataPacket(ChunkFactory.java:144)
    at game.data.chunk.ChunkFactory.parse(ChunkFactory.java:104)
    at game.data.chunk.ChunkFactory.lambda$addChunk$9(ChunkFactory.java:91)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:833)
Chunk could not be parsed!
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 17 out of bounds for byte[9]

 java.lang.ArrayIndexOutOfBoundsException
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.

 java.lang.ArrayIndexOutOfBoundsException
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
    at packets.DataReader.readVarInt(DataReader.java:70)

 java.lang.ArrayIndexOutOfBoundsException
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
    at packets.DataReader.readVarInt(DataReader.java:70)
    at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
    at game.data.chunk.version.Chunk_1_18.parse(Chunk_1_18.java:51)
    at game.data.chunk.ChunkFactory.parseChunk(ChunkFactory.java:127)

 java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 12 out of bounds for byte[5]
    at java.base/java.lang.System.arraycopy(Native Method)
    at packets.DataTypeProvider.readByteArray(DataTypeProvider.java:90)
    at packets.DataTypeProvider.readLong(DataTypeProvider.java:155)
    at packets.DataTypeProvider.readUUID(DataTypeProvider.java:224)
    at game.data.entity.PlayerEntity.parse(PlayerEntity.java:22)

 java.lang.ArrayIndexOutOfBoundsException
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
    at packets.DataReader.readVarInt(DataReader.java:70)
    at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
    at game.data.chunk.version.Chunk_1_18.parse(Chunk_1_18.java:51)
    at game.data.chunk.ChunkFactory.parseChunk(ChunkFactory.java:127)
    at game.data.chunk.ChunkFactory.readChunkDataPacket(ChunkFactory.java:144)
    at game.data.chunk.ChunkFactory.parse(ChunkFactory.java:104)

 java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 12 out of bounds for byte[5]
    at java.base/java.lang.System.arraycopy(Native Method)
    at packets.DataTypeProvider.readByteArray(DataTypeProvider.java:90)
    at packets.DataTypeProvider.readLong(DataTypeProvider.java:155)
    at packets.DataTypeProvider.readUUID(DataTypeProvider.java:224)
    at game.data.entity.PlayerEntity.parse(PlayerEntity.java:22)
    at game.data.entity.EntityRegistry.lambda$addPlayer$6(EntityRegistry.java:88)
    at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
    at util.ExceptionHandling.attempt(ExceptionHandling.java:22)
    at game.data.entity.EntityRegistry.lambda$addPlayer$7(EntityRegistry.java:86)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:833)

 java.lang.ArrayIndexOutOfBoundsException
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
    at packets.DataReader.readVarInt(DataReader.java:70)
    at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
    at game.data.chunk.version.Chunk_1_18.parse(Chunk_1_18.java:51)
    at game.data.chunk.ChunkFactory.parseChunk(ChunkFactory.java:127)
    at game.data.chunk.ChunkFactory.readChunkDataPacket(ChunkFactory.java:144)
    at game.data.chunk.ChunkFactory.parse(ChunkFactory.java:104)
    at game.data.chunk.ChunkFactory.lambda$addChunk$9(ChunkFactory.java:91)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:833)
Chunk could not be parsed!
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 17 out of bounds for byte[9]
    at java.base/java.lang.System.arraycopy(Native Method)
    at packets.DataTypeProvider.readByteArray(DataTypeProvider.java:90)
    at packets.DataTypeProvider.readDouble(DataTypeProvider.java:216)
    at packets.handler.ServerBoundGamePacketHandler.lambda$new$0(ServerBoundGamePacketHandler.java:20)
    at packets.handler.ServerBoundGamePacketHandler.lambda$new$2(ServerBoundGamePacketHandler.java:37)
    at packets.handler.PacketHandler.handle(PacketHandler.java:57)
    at packets.DataReader.readPackets(DataReader.java:163)
    at packets.DataReader.pushData(DataReader.java:118)
    at proxy.ProxyServer.lambda$run$4(ProxyServer.java:86)
    at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
    at proxy.ProxyServer.lambda$run$6(ProxyServer.java:83)
    at java.base/java.lang.Thread.run(Thread.java:833)

 java.lang.ArrayIndexOutOfBoundsException
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
    at packets.DataReader.readVarInt(DataReader.java:70)

 java.lang.ArrayIndexOutOfBoundsException
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
    at packets.DataReader.readVarInt(DataReader.java:70)
    at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
    at game.data.chunk.version.Chunk_1_18.parse(Chunk_1_18.java:51)
    at game.data.chunk.ChunkFactory.parseChunk(ChunkFactory.java:127)
    at game.data.chunk.ChunkFactory.readChunkDataPacket(ChunkFactory.java:144)

 java.lang.ArrayIndexOutOfBoundsException
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
    at packets.DataReader.readVarInt(DataReader.java:70)
    at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
    at game.data.chunk.version.Chunk_1_18.parse(Chunk_1_18.java:51)
    at game.data.chunk.ChunkFactory.parseChunk(ChunkFactory.java:127)
    at game.data.chunk.ChunkFactory.readChunkDataPacket(ChunkFactory.java:144)
    at game.data.chunk.ChunkFactory.parse(ChunkFactory.java:104)
    at game.data.chunk.ChunkFactory.lambda$addChunk$9(ChunkFactory.java:91)

 java.lang.ArrayIndexOutOfBoundsException
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
    at packets.DataReader.readVarInt(DataReader.java:70)
    at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
    at game.data.chunk.version.Chunk_1_18.parse(Chunk_1_18.java:51)
    at game.data.chunk.ChunkFactory.parseChunk(ChunkFactory.java:127)
    at game.data.chunk.ChunkFactory.readChunkDataPacket(ChunkFactory.java:144)
    at game.data.chunk.ChunkFactory.parse(ChunkFactory.java:104)
    at game.data.chunk.ChunkFactory.lambda$addChunk$9(ChunkFactory.java:91)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:833)
Chunk could not be parsed!
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 17 out of bounds for byte[9]

 java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 17 out of bounds for byte[9]
    at java.base/java.lang.System.arraycopy(Native Method)

 java.lang.ArrayIndexOutOfBoundsException
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
    at packets.DataReader.readVarInt(DataReader.java:70)
    at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
    at game.data.chunk.version.Chunk_1_18.parse(Chunk_1_18.java:51)
    at game.data.chunk.ChunkFactory.parseChunk(ChunkFactory.java:127)
    at game.data.chunk.ChunkFactory.readChunkDataPacket(ChunkFactory.java:144)
    at game.data.chunk.ChunkFactory.parse(ChunkFactory.java:104)
    at game.data.chunk.ChunkFactory.lambda$addChunk$9(ChunkFactory.java:91)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:833)
Chunk could not be parsed!
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 17 out of bounds for byte[9]

 java.lang.ArrayIndexOutOfBoundsException
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
    at packets.DataReader.readVarInt(DataReader.java:70)
    at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
    at game.data.chunk.version.Chunk_1_18.parse(Chunk_1_18.java:51)
    at game.data.chunk.ChunkFactory.parseChunk(ChunkFactory.java:127)
    at game.data.chunk.ChunkFactory.readChunkDataPacket(ChunkFactory.java:144)
    at game.data.chunk.ChunkFactory.parse(ChunkFactory.java:104)
    at game.data.chunk.ChunkFactory.lambda$addChunk$9(ChunkFactory.java:91)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:833)

 java.lang.ArrayIndexOutOfBoundsException
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
    at packets.DataReader.readVarInt(DataReader.java:70)
    at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
    at game.data.chunk.version.Chunk_1_18.parse(Chunk_1_18.java:51)
    at game.data.chunk.ChunkFactory.parseChunk(ChunkFactory.java:127)
    at game.data.chunk.ChunkFactory.readChunkDataPacket(ChunkFactory.java:144)
    at game.data.chunk.ChunkFactory.parse(ChunkFactory.java:104)
    at game.data.chunk.ChunkFactory.lambda$addChunk$9(ChunkFactory.java:91)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:833)
Chunk could not be parsed!
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 17 out of bounds for byte[9]

Related

640

jaac-dev commented 9 months ago

The biggest problem I've encountered so far in attempting to add support is the removal of the "Spawn Player" packet. It's now integrated directly into the "Spawn Entity" packet with the entity type field set to 122, aka minecraft:player. The current implementation has player entities separate from normal entities (as the packet for spawning a player was only three fields previously).

Otherwise, all the other packets seem to be up to date, just needed ID changes.

ghost commented 9 months ago

Did you find way to run it on 1.20.4? i have same issue here Screenshot_2 Screenshot_6

jaac-dev commented 9 months ago

Did you find way to run it on 1.20.4? i have same issue here Screenshot_2 Screenshot_6

This project just doesn't support 1.20.4 yet. I'm working on implementing support for it, although the removal of an independent "Spawn Player" packet might necessitate a larger rewrite of the entity registry. I'm going to do my best to write a stop-gap patch in my fork, but it's ultimately up to @mircokroon on how they want to implement 1.20.4 support.

I will link my fork once I have a stop-gap, but I think further input from the maintainer is required.