diff options
| author | troido <troido@protonmail.com> | 2020-04-02 16:07:32 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-04-02 16:07:32 +0200 |
| commit | b597d2279db7beb0d619fac472481b7f707609c8 (patch) | |
| tree | 3d45ea9f45a8897a3aec5c30b16bb0db12b162b2 /src/resources/newentities.rs | |
| parent | 1e8fe74740fc4fb11b660415b2db182c6a63a3c2 (diff) | |
built doors
Diffstat (limited to 'src/resources/newentities.rs')
| -rw-r--r-- | src/resources/newentities.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/newentities.rs b/src/resources/newentities.rs index a9c4ddc..f03fbbb 100644 --- a/src/resources/newentities.rs +++ b/src/resources/newentities.rs @@ -20,8 +20,8 @@ impl NewEntities { encyclopedia } } - pub fn create(&mut self, pos: Pos, template: Template) -> Result<()> { - let components = self.encyclopedia.construct(&template)?; + pub fn create(&mut self, pos: Pos, template: &Template) -> Result<()> { + let components = self.encyclopedia.construct(template)?; self.to_build.push((pos, components)); Ok(()) } |
