mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/block/drills.rs')
| -rw-r--r-- | src/block/drills.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/block/drills.rs b/src/block/drills.rs index ceffc70..e19912e 100644 --- a/src/block/drills.rs +++ b/src/block/drills.rs @@ -8,14 +8,16 @@ make_simple!( |_, name, _, _, rot: Rotation, s| { let mut base = load!(from name which is ["large-plasma-bore" | "plasma-bore" | "cliff-crusher"], s); - base.overlay(load!(concat top => name which is ["large-plasma-bore" | "plasma-bore" | "cliff-crusher"], s).rotate(rot.rotated(false).count())); + unsafe { + base.overlay(load!(concat top => name which is ["large-plasma-bore" | "plasma-bore" | "cliff-crusher"], s).rotate(rot.rotated(false).count()) ) + }; base }, |_, _, _, buff: &mut DataRead| read_drill(buff) ); make_simple!(WallDrillBlock, |_, _, _, _, rot: Rotation, scl| { let mut base = load!("cliff-crusher", scl); - base.overlay(load!("cliff-crusher-top", scl).rotate(rot.rotated(false).count())); + unsafe { base.overlay(load!("cliff-crusher-top", scl).rotate(rot.rotated(false).count())) }; base }); |