Nan1t / NanoLimbo

The lightweight, high performance Minecraft limbo server
https://www.spigotmc.org/resources/86198/
GNU General Public License v3.0
252 stars 51 forks source link

Support 1.20.3 #79

Closed BoomEaro closed 8 months ago

BoomEaro commented 9 months ago

Now json messages are written as nbt, so for new versions there is a json string to nbt converter. In addition, in order to immediately close the loading screen, the client should receive a GameEvent packet with type "WAIT_FOR_LEVEL_CHUNKS" after the configuration phase and then immediately receive the chunks. For this reason, a packet of empty chunks was also added, which is sent only for 1.20.3+.

There might be a way to not send chunk packets, but I haven't found it yet.

Tim203 commented 9 months ago

Feel free to look at https://github.com/GeyserMC/GlobalLinkServer/blob/master/src/main/java/org/geysermc/globallinkserver/java/JavaServer.java as we don't send chunks.

Nan1t commented 8 months ago

Very good, thank you! Currently i release this update as is. And thanks to @Tim203 for the example. When i will have more time i will try to reproduce it in this project.