diff --git a/rslib/src/image_occlusion/notetype.rs b/rslib/src/image_occlusion/notetype.rs index 488a29cfd..5537c90fa 100644 --- a/rslib/src/image_occlusion/notetype.rs +++ b/rslib/src/image_occlusion/notetype.rs @@ -46,7 +46,9 @@ impl Collection { pub(crate) fn get_first_io_notetype(&mut self) -> Result>> { for nt in self.get_all_notetypes()? { if nt.config.original_stock_kind() == OriginalStockKind::ImageOcclusion { - return Some(io_notetype_if_valid(nt)).transpose(); + if let Ok(nt) = io_notetype_if_valid(nt) { + return Ok(Some(nt)); + } } }