satoshinm / NetCraft

Web-based fork of fogleman/Craft ⛺
https://satoshinm.github.io/NetCraft/
MIT License
57 stars 13 forks source link

Add support for compressed chunk updates, GH-136 #173

Closed satoshinm closed 7 years ago

satoshinm commented 7 years ago

https://github.com/satoshinm/NetCraft/issues/136 https://github.com/satoshinm/WebSandboxMC/pull/86

Adds a new "b," command which indicates the next binary websocket frame (web client only, no native since TCP doesn't have its own framing and the application uses newline delimitations, but web sockets have their own built-in framing which is used here) with compressed block data over a given multi-block range. This is for a faster/smaller initial world load than tons of "B," commands for individual block updates.