mindustry logic execution, map- and schematic- parsing and rendering
fix issue with `collect_entities`
bendn 2024-04-16
parent 1c44e7c · commit c374c39
-rw-r--r--mindus/Cargo.toml2
-rw-r--r--mindus/src/data/map.rs5
2 files changed, 2 insertions, 5 deletions
diff --git a/mindus/Cargo.toml b/mindus/Cargo.toml
index 9e05fb4..12d0510 100644
--- a/mindus/Cargo.toml
+++ b/mindus/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "mindus"
-version = "5.0.21"
+version = "5.0.23"
edition = "2021"
description = "A library for working with mindustry data formats (eg schematics and maps) (fork of plandustry)"
authors = [
diff --git a/mindus/src/data/map.rs b/mindus/src/data/map.rs
index 44df8fb..fcbed3f 100644
--- a/mindus/src/data/map.rs
+++ b/mindus/src/data/map.rs
@@ -905,13 +905,10 @@ impl MapReader {
match Pin::new(&mut co).resume(()) {
Yielded(EntityData::Data(x)) => o.push(x),
Complete(Err(e)) => return Err(e),
+ Complete(Ok(())) => break,
_ => unreachable!(),
}
}
- match Pin::new(&mut co).resume(()) {
- Complete(Ok(())) => (),
- _ => unreachable!(),
- };
Ok(o)
}
}