Merge branch 'termac/hotbar_hotkey_fix' into 'master'

small fix for handling hotbar hotkeys (fixes #687)

Closes #687

See merge request veloren/veloren!1343
This commit is contained in:
Imbris 2020-08-29 20:32:07 +00:00
commit 67d046c846

View File

@ -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);