From ea99b86b89659624133a63f03600f0b57592a5f4 Mon Sep 17 00:00:00 2001 From: troido Date: Wed, 4 Mar 2020 20:53:42 +0100 Subject: controls work with old client now too --- src/systems/useitem.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/systems') 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(); -- cgit