mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/data/schematic.rs')
-rw-r--r--src/data/schematic.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data/schematic.rs b/src/data/schematic.rs
index c0ae97d..20b7f60 100644
--- a/src/data/schematic.rs
+++ b/src/data/schematic.rs
@@ -331,7 +331,7 @@ impl<'l> Schematic<'l>
}
}
- pub fn take(&mut self, x: u16, y: u16) -> Result<Option<Placement>, PosError>
+ pub fn take(&mut self, x: u16, y: u16) -> Result<Option<Placement<'l>>, PosError>
{
if x >= self.width || y >= self.height
{
@@ -489,7 +489,7 @@ impl<'l> Schematic<'l>
PosIter{x: 0, y: 0, w: self.width, h: self.height}
}
- pub fn block_iter<'s>(&'s self) -> Iter<'s, Placement>
+ pub fn block_iter<'s>(&'s self) -> Iter<'s, Placement<'l>>
{
self.blocks.iter()
}