aboutsummaryrefslogtreecommitdiff
path: root/azalea-world/src/palette
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-11-15 13:23:31 -0330
committermat <git@matdoes.dev>2025-11-15 13:23:31 -0330
commit19041c54a8b86abe54e466440f82b4feee35dba4 (patch)
tree966ce7ea105aa8698c8a817f7840a7cbcc3d1d09 /azalea-world/src/palette
parent5ef9ab939500388fb4e636974161eb0959130065 (diff)
downloadazalea-drasl-19041c54a8b86abe54e466440f82b4feee35dba4.tar.xz
log more debug info when resizing chunk palettes
Diffstat (limited to 'azalea-world/src/palette')
-rw-r--r--azalea-world/src/palette/container.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/azalea-world/src/palette/container.rs b/azalea-world/src/palette/container.rs
index 4aae64de..4e5b4489 100644
--- a/azalea-world/src/palette/container.rs
+++ b/azalea-world/src/palette/container.rs
@@ -7,7 +7,7 @@ use azalea_block::BlockState;
use azalea_buf::{AzaleaRead, AzaleaWrite, BufReadError};
use azalea_core::position::{ChunkSectionBiomePos, ChunkSectionBlockPos};
use azalea_registry::Biome;
-use tracing::warn;
+use tracing::{debug, warn};
use super::{Palette, PaletteKind};
use crate::BitStorage;
@@ -231,6 +231,10 @@ impl<S: PalletedContainerKind> PalettedContainer<S> {
}
fn on_resize(&mut self, bits_per_entry: u8, value: S) -> usize {
+ debug!(
+ "Resizing PalettedContainer from {} bpe to {bits_per_entry} for {value:?} with palette={:?}",
+ self.bits_per_entry, self.palette
+ );
// in vanilla this is always true, but it's sometimes false in purpur servers
// assert!(bits_per_entry <= 5, "bits_per_entry must be <= 5");
let mut new_data = self.create_or_reuse_data(bits_per_entry);