Closed BoomEaro closed 8 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.
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.
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.