aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-05-05 23:06:37 -0500
committermat <github@matdoes.dev>2022-05-05 23:06:37 -0500
commit1b48cad53ffba45463be41dafb4dfbcab0f46c09 (patch)
tree52a75ef096fe44b068efc171a4cada3d4d76ec45
parent4dac004635e50682d9ebe8812fdf654a0c1808f1 (diff)
downloadazalea-drasl-1b48cad53ffba45463be41dafb4dfbcab0f46c09.tar.xz
remove some prints
-rw-r--r--azalea-world/src/lib.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/azalea-world/src/lib.rs b/azalea-world/src/lib.rs
index abeac181..36bbceac 100644
--- a/azalea-world/src/lib.rs
+++ b/azalea-world/src/lib.rs
@@ -123,9 +123,7 @@ impl Chunk {
pub fn read_with_world_height(buf: &mut impl Read, world_height: u32) -> Result<Self, String> {
let section_count = world_height / SECTION_HEIGHT;
let mut sections = Vec::with_capacity(section_count as usize);
- println!("\n\nreading {} sections", section_count);
for i in 0..section_count {
- println!("reading section #{}", i);
let section = Section::read_into(buf)?;
sections.push(section);
}
@@ -152,15 +150,13 @@ pub struct Section {
impl McBufReadable for Section {
fn read_into(buf: &mut impl Read) -> Result<Self, String> {
let block_count = u16::read_into(buf)?;
- println!("block count: {}\n", block_count);
+ // this is commented out because apparently the vanilla server just gives us an incorrect block count sometimes
// assert!(
// block_count <= 16 * 16 * 16,
// "A section has more blocks than what should be possible. This is a bug!"
// );
let states = PalettedContainer::read_with_type(buf, &PalettedContainerType::BlockStates)?;
- println!("! read states, reading biomes next");
let biomes = PalettedContainer::read_with_type(buf, &PalettedContainerType::Biomes)?;
- println!();
Ok(Section {
block_count,
states,