diff options
| author | troido <troido@protonmail.com> | 2020-03-04 20:53:42 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-03-04 20:53:42 +0100 |
| commit | ea99b86b89659624133a63f03600f0b57592a5f4 (patch) | |
| tree | 12263acbe0f879ddca7448e9a5cd1faccf6364fd /src/systems/useitem.rs | |
| parent | e0dcd48034e2bab9e0ae17a80a5b4d9f0f2a7900 (diff) | |
controls work with old client now too
Diffstat (limited to 'src/systems/useitem.rs')
| -rw-r--r-- | src/systems/useitem.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/systems/useitem.rs b/src/systems/useitem.rs index 43f38be..89a301c 100644 --- a/src/systems/useitem.rs +++ b/src/systems/useitem.rs @@ -39,9 +39,7 @@ impl <'a> System<'a> for Use { for (ent, controller, position, inventory) in (&entities, &controllers, &positions, &mut inventories).join(){ match &controller.control { Control::Use(rank) => { - println!("rank {:?}", rank); if let Some(item) = inventory.items.get(*rank) { - println!("rank {:?}", item); match &item.action { Build(template) => { new.create(position.pos, template.clone()).unwrap(); |
