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 83 forks source link

Sleeping in 1.20.2 causes the client to crash #649

Open Booyahhayoob opened 9 months ago

Booyahhayoob commented 9 months ago

Describe the bug Per title.

Steps to reproduce Try to sleep in a bed. Watch your soul evidently leave your body as it gives the "sleeping" message but keeps you standing up, and the downloader says an error has occurred.

Log output

Exception in thread "Proxy" java.lang.Error: Cannot write an error tag to NBT stream (Unknown tag type: 0)
    at se.llbit.nbt.ErrorTag.tagType(ErrorTag.java:61)
    at game.data.chunk.ChunkEntities.addBlockEntity(ChunkEntities.java:142)
    at game.data.chunk.ChunkFactory.updateTileEntity(ChunkFactory.java:73)
    at packets.handler.version.ClientBoundGamePacketHandler_1_18.lambda$new$1(ClientBoundGamePacketHandler_1_18.java:37)
    at packets.handler.PacketHandler.handle(PacketHandler.java:58)
    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)

Screenshots 2024-02-09_08 27 28

Version

urda commented 9 months ago

This also occurs within 1.20.4 still.

Laztec commented 9 months ago

This also appears to happen when any other entities sleep, so flying over villages at night can be hazardous.