mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-24 02:44:17 +00:00
Prevent button combos from passing if either the (#684)
vanilla or mod menu is open
This commit is contained in:
parent
c3ab2adbd7
commit
c6e03b98d3
1 changed files with 5 additions and 0 deletions
|
@ -197,6 +197,11 @@ lazy_static! {
|
|||
|
||||
fn _combo_passes(p1_controller: Controller, combo: ButtonCombo) -> bool {
|
||||
unsafe {
|
||||
// Prevent button combos from passing if either the vanilla or mod menu is open
|
||||
if VANILLA_MENU_ACTIVE || QUICK_MENU_ACTIVE {
|
||||
return false;
|
||||
}
|
||||
|
||||
let combo_keys = get_combo_keys(combo).to_vec();
|
||||
let mut this_combo_passes = false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue