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/systems/useitem.rs | |
| parent | 1e8fe74740fc4fb11b660415b2db182c6a63a3c2 (diff) | |
built doors
Diffstat (limited to 'src/systems/useitem.rs')
| -rw-r--r-- | src/systems/useitem.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systems/useitem.rs b/src/systems/useitem.rs index d96f6ef..8763843 100644 --- a/src/systems/useitem.rs +++ b/src/systems/useitem.rs @@ -48,7 +48,7 @@ impl <'a> System<'a> for Use { Build(template, required_flags, blocking_flags) => { let ground_flags = ground.flags_on(position.pos, &flags); if required_flags.is_subset(&ground_flags) && blocking_flags.is_disjoint(&ground_flags){ - new.create(position.pos, template.clone()).unwrap(); + new.create(position.pos, &template).unwrap(); inventory.items.remove(*rank); } } |
