mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/block/mod.rs')
| -rw-r--r-- | src/block/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/block/mod.rs b/src/block/mod.rs index f48a62d..dda19a5 100644 --- a/src/block/mod.rs +++ b/src/block/mod.rs @@ -328,7 +328,7 @@ impl Block { /// should you send context to [`image`]? #[must_use] #[inline] - pub fn wants_context(&self) -> bool { + pub const fn wants_context(&self) -> bool { use BlockLogicEnum::*; matches!( self.logic, @@ -936,7 +936,7 @@ make_register! { "water-extractor" -> BasicBlock::new(2, true, cost!(Copper: 30, Lead: 30, Metaglass: 30, Graphite: 30)); "oil-extractor" -> BasicBlock::new(3, true, cost!(Copper: 150, Lead: 115, Graphite: 175, Thorium: 115, Silicon: 75)); "vent-condenser" -> ProductionBlock::new(3, true, cost!(Graphite: 20, Beryllium: 60)); - "cliff-crusher" -> WallDrillBlock::new(2, false, cost!(Beryllium: 100, Graphite: 40)); + "cliff-crusher" => WallDrillBlock::new(2, false, cost!(Beryllium: 100, Graphite: 40)); "plasma-bore" => DrillBlock::new(2, false, cost!(Beryllium: 40)); "large-plasma-bore" => DrillBlock::new(3, false, cost!(Silicon: 100, Oxide: 25, Beryllium: 100, Tungsten: 70)); "impact-drill" -> DrillBlock::new(4, true, cost!(Silicon: 70, Beryllium: 90, Graphite: 60)); |