mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/data/schematic.rs')
-rw-r--r--src/data/schematic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data/schematic.rs b/src/data/schematic.rs
index a3b104d..9927ad2 100644
--- a/src/data/schematic.rs
+++ b/src/data/schematic.rs
@@ -591,7 +591,7 @@ impl<'l> Schematic<'l> {
let mut sandbox = false;
for &Placement { block, .. } in &self.blocks {
if let Some(curr) = block.get_build_cost() {
- cost.add_all(curr, u32::MAX);
+ cost.add_all(&curr, u32::MAX);
} else {
sandbox = true;
}