Skip to content

Commit

Permalink
Unexcpec EOF, idk why, needs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
suprohub committed Jan 3, 2025
1 parent 94a1614 commit 590a96f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pumpkin-world/src/chunk/pumpkin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl ChunkReader for PumpkinChunkFormat {
let mut block = [0, 0];
while block != [0xFF, 0xFF] {
data.read_exact(&mut block)
.map_err(|_| ChunkReadingError::InvalidHeader)?;
.map_err(|e| ChunkReadingError::IoError(e.kind()))?;
palette.push(u16::from_le_bytes(block));
}
palette.pop();
Expand All @@ -80,7 +80,6 @@ impl ChunkReader for PumpkinChunkFormat {
.fold(0, |acc, bit| if *bit { acc << 1 + 1 } else { acc << 1 })]
}));
}
log::info!("asd, {} {}", blocks.len(), CHUNK_VOLUME);

Ok(ChunkData {
blocks: ChunkBlocks {
Expand Down

0 comments on commit 590a96f

Please sign in to comment.