Skip to content

Commit

Permalink
fix: fix console log spam when sub chunk sending system is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Dec 17, 2024
1 parent dcb714a commit 6566b88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ private void registerLoggedInPacketProcessors() {
this.registerProcessor(ClientStatus.LOGGED_IN, new RequestChunkRadiusPacketProcessor());
this.registerProcessor(ClientStatus.LOGGED_IN, new EmoteListPacketProcessor());
this.registerProcessor(ClientStatus.LOGGED_IN, new SetLocalPlayerAsInitializedPacketProcessor());
// Client will send sub chunk request packet during
// logged in stage if sub chunk sending system is enabled
this.registerProcessor(ClientStatus.LOGGED_IN, new SubChunkRequestPacketProcessor());

// Client will start sending auth input packet after logged in, however these packets will be ignored.
// See PlayerAuthInputPacketProcessor#notReadyForInput()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ private static void createSubChunkData(
if (result == SubChunkRequestResult.SUCCESS) {
var buffer = ByteBufAllocator.DEFAULT.ioBuffer();
subchunk.writeToNetwork(buffer);
// FIXME: biome data in sub chunk data is broken
subchunk.biomes().writeToNetwork(buffer, BiomeType::getId);
// edu - border blocks
buffer.writeByte(0);
Expand Down

0 comments on commit 6566b88

Please sign in to comment.