mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/block/production.rs')
| -rw-r--r-- | src/block/production.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/block/production.rs b/src/block/production.rs index 333290a..9cb13ca 100644 --- a/src/block/production.rs +++ b/src/block/production.rs @@ -83,8 +83,8 @@ make_simple!( |_, n, _, _, r: Rotation, s| { let mut base = load!(from n which is ["phase-heater" | "electric-heater" | "oxidation-chamber" | "slag-heater" | "heat-source"], s); base.overlay(unsafe { match r { - Rotation::Up | Rotation::Right => load!(concat top1 => n which is ["phase-heater" | "electric-heater" | "oxidation-chamber" | "slag-heater" | "heat-source"], s), - Rotation::Down | Rotation::Left => load!(concat top2 => n which is ["phase-heater" | "electric-heater" | "oxidation-chamber" | "slag-heater" | "heat-source"], s) + Rotation::Up | Rotation::Right => load!(concat "top1" => n which is ["phase-heater" | "electric-heater" | "oxidation-chamber" | "slag-heater" | "heat-source"], s), + Rotation::Down | Rotation::Left => load!(concat "top2" => n which is ["phase-heater" | "electric-heater" | "oxidation-chamber" | "slag-heater" | "heat-source"], s) }.rotate(r.rotated(false).count())}); base }, @@ -102,10 +102,10 @@ make_simple!(HeatConduit, |_, n, _, _, r: Rotation, s| { base.overlay(unsafe { match r { Rotation::Up | Rotation::Right => { - load!(concat top1 => n which is ["heat-router" | "heat-redirector"], s) + load!(concat "top1" => n which is ["heat-router" | "heat-redirector"], s) } Rotation::Down | Rotation::Left => { - load!(concat top2 => n which is ["heat-router" | "heat-redirector"], s) + load!(concat "top2" => n which is ["heat-router" | "heat-redirector"], s) } } .rotate(r.rotated(false).count()) |