mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
small fix for handling hotbar hotkeys (fixes #687)
Send an 'ChangeHotbarState' event when a hotbar slot is assigned via hotkey in the inventory.
This commit is contained in:
parent
92d9a51071
commit
76df71ed3d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user