mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/data/autotile.rs')
| -rw-r--r-- | src/data/autotile.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/data/autotile.rs b/src/data/autotile.rs index 92ef1b4..59a6010 100644 --- a/src/data/autotile.rs +++ b/src/data/autotile.rs @@ -24,10 +24,7 @@ macro_rules! conv { None }; ($dir:tt) => { - Some(( - &crate::block::distribution::CONVEYOR, - crate::data::autotile::dir!($dir), - )) + Some((&crate::block::CONVEYOR, crate::data::autotile::dir!($dir))) }; } #[cfg(test)] @@ -236,12 +233,9 @@ pub trait Crossable { #[test] fn test_cross() { - let mut reg = crate::block::BlockRegistry::default(); - crate::block::distribution::register(&mut reg); - let mut ss = super::schematic::SchematicSerializer(®); macro_rules! test { ($schem: literal => $($a:tt,$b:tt,$c:tt,$d:tt)*) => { - let s = ss.deserialize_base64($schem).unwrap(); + let s = crate::Schematic::deserialize_base64($schem).unwrap(); let mut c = vec![]; println!("{:#?}", s.blocks); for (position, _) in s.block_iter() { |