From 76df71ed3d861c61c952e4d2ad99a0c981900fff Mon Sep 17 00:00:00 2001 From: termac Date: Sat, 29 Aug 2020 18:38:55 +0200 Subject: [PATCH] small fix for handling hotbar hotkeys (fixes #687) Send an 'ChangeHotbarState' event when a hotbar slot is assigned via hotkey in the inventory. --- voxygen/src/hud/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/voxygen/src/hud/mod.rs b/voxygen/src/hud/mod.rs index 4d3cf8ae17..01a68eb1d0 100644 --- a/voxygen/src/hud/mod.rs +++ b/voxygen/src/hud/mod.rs @@ -2296,6 +2296,7 @@ impl Hud { ) { if let Some(slots::SlotKind::Inventory(i)) = slot_manager.selected() { hotbar.add_inventory_link(slot, i.0); + events.push(Event::ChangeHotbarState(Box::new(hotbar.to_owned()))); slot_manager.idle(); } else { let just_pressed = hotbar.process_input(slot, state);