mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
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:
commit
67d046c846
@ -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