diff --git a/voxygen/src/hud/overitem.rs b/voxygen/src/hud/overitem.rs index 5d0f32249a..07fbb02b03 100644 --- a/voxygen/src/hud/overitem.rs +++ b/voxygen/src/hud/overitem.rs @@ -71,7 +71,11 @@ impl<'a> Ingameable for Overitem<'a> { // TODO maybe this could be done automatically? // - 2 Text for name // - 0 or 2 Rectangle and Text for button - 2 + match self.controls.get_binding(GameInput::Interact) { + 2 + match self + .controls + .get_binding(GameInput::Interact) + .filter(|_| self.active) + { Some(_) => 2, None => 0, }