From 254f75bd52ea1e07adf04e7cb4af95206b9d9104 Mon Sep 17 00:00:00 2001 From: CaveNightingale Date: Sun, 18 Feb 2024 19:54:14 +0800 Subject: [PATCH] Fix dead loop --- src/anvil.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/anvil.rs b/src/anvil.rs index 35e7cd9..610c301 100644 --- a/src/anvil.rs +++ b/src/anvil.rs @@ -138,10 +138,11 @@ impl<'a> Iterator for AnvilIter<'a> { } } _ => { + self.index += 1; return Some(Err(anyhow::anyhow!( "Unknown compression type in chunk {:?}", location - ))) + ))); } } self.index += 1;