mindustry logic execution, map- and schematic- parsing and rendering
-rw-r--r--src/block/distribution.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/block/distribution.rs b/src/block/distribution.rs
index db21c17..85f1c79 100644
--- a/src/block/distribution.rs
+++ b/src/block/distribution.rs
@@ -129,10 +129,12 @@ make_simple!(
// format:
// - link: `i32`
// - cooldown: `f32`
- |_, _, _, buff: &mut DataRead| { buff.skip(8) },
+ |_, _, _, buff: &mut DataRead| buff.skip(8),
true
);
make_simple!(ControlBlock);
+// format: id: [`i32`]
+make_simple!(UnitCargoLoader => |_, _, _, buff: &mut DataRead| buff.skip(4));
make_register! {
"conveyor" => ConveyorBlock::new(1, false, cost!(Copper: 1));
@@ -158,7 +160,7 @@ make_register! {
"duct-unloader" => ItemBlock::new(1, true, cost!(Graphite: 20, Silicon: 20, Tungsten: 10));
"surge-conveyor" => StackConveyor::new(1, false, cost!(SurgeAlloy: 1, Tungsten: 1));
"surge-router" => ControlBlock::new(1, false, cost!(SurgeAlloy: 5, Tungsten: 1)); // not symmetric
- "unit-cargo-loader" => ControlBlock::new(3, true, cost!(Silicon: 80, SurgeAlloy: 50, Oxide: 20));
+ "unit-cargo-loader" => UnitCargoLoader::new(3, true, cost!(Silicon: 80, SurgeAlloy: 50, Oxide: 20));
"unit-cargo-unload-point" => ItemBlock::new(2, true, cost!(Silicon: 60, Tungsten: 60));
// sandbox only
"item-source" => ItemBlock::new(1, true, &[]);