mindustry logic execution, map- and schematic- parsing and rendering
| -rw-r--r-- | mindus/Cargo.toml | 2 | ||||
| -rw-r--r-- | mindus/src/block/distribution.rs | 11 | ||||
| -rw-r--r-- | mindus/src/lib.rs | 1 |
3 files changed, 8 insertions, 6 deletions
diff --git a/mindus/Cargo.toml b/mindus/Cargo.toml index b55d555..76d2175 100644 --- a/mindus/Cargo.toml +++ b/mindus/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mindus" -version = "5.0.43" +version = "5.0.44" edition = "2024" description = "A library for working with mindustry data formats (eg schematics and maps) (fork of plandustry)" authors = [ diff --git a/mindus/src/block/distribution.rs b/mindus/src/block/distribution.rs index 2f19cd8..4e867a9 100644 --- a/mindus/src/block/distribution.rs +++ b/mindus/src/block/distribution.rs @@ -468,8 +468,9 @@ pub struct BridgeConvertError { /// - call [`read_item_bridge`] /// - become [`read_item_buffer`] fn read_buffered_item_bridge(buff: &mut DataRead) -> Result<(), DataReadError> { - read_item_bridge(buff)?; - read_item_buffer(buff) + // read_item_bridge(buff)?; + // read_item_buffer(buff) + Ok(()) } /// format: @@ -490,8 +491,10 @@ fn read_item_buffer(buff: &mut DataRead) -> Result<(), DataReadError> { /// - moved: `bool` fn read_item_bridge(buff: &mut DataRead) -> Result<(), DataReadError> { buff.skip(8)?; - let n = buff.read_u8()? as usize; - buff.skip((n * 4) + 1) + let n = buff.read_i8()?; + // buff.skip((n as usize * 4) + 1) + // bug? + Ok(()) } /// format: diff --git a/mindus/src/lib.rs b/mindus/src/lib.rs index 64734ed..eb28815 100644 --- a/mindus/src/lib.rs +++ b/mindus/src/lib.rs @@ -1,7 +1,6 @@ //! crate for dealing with mindustry #![feature( error_generic_member_access, - maybe_uninit_write_slice, try_trait_v2_residual, stmt_expr_attributes, generic_const_exprs, |