Skip to content

Commit

Permalink
Ignore missing chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed Apr 5, 2024
1 parent 31eb2db commit 5cdd6e2
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -709,9 +709,8 @@ public void onChunkData(ClientboundChunksBiomesPacket packet) {
for (var biomeData : packet.getChunkBiomeData()) {
var chunkData = level.chunks().getChunk(biomeData.getX(), biomeData.getZ());

// Vanilla silently ignores updates for unknown chunks
if (chunkData == null) {
log.warn(
"Received biome update for unknown chunk: {} {}", biomeData.getX(), biomeData.getZ());
return;
}

Expand Down Expand Up @@ -752,11 +751,8 @@ public void onSectionBlockUpdate(ClientboundSectionBlocksUpdatePacket packet) {

var chunkData = level.chunks().getChunk(packet.getChunkX(), packet.getChunkZ());

// Vanilla silently ignores updates for unknown chunks
if (chunkData == null) {
log.warn(
"Received section blocks update for unknown chunk: {} {}",
packet.getChunkX(),
packet.getChunkZ());
return;
}

Expand Down

0 comments on commit 5cdd6e2

Please sign in to comment.