1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-11-27 20:34:03 +00:00

Prevent button combos from passing if either the (#684)

vanilla or mod menu is open
This commit is contained in:
asimon-1 2024-04-23 20:43:46 -07:00 committed by GitHub
parent c3ab2adbd7
commit c6e03b98d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -197,6 +197,11 @@ lazy_static! {
fn _combo_passes(p1_controller: Controller, combo: ButtonCombo) -> bool { fn _combo_passes(p1_controller: Controller, combo: ButtonCombo) -> bool {
unsafe { 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 combo_keys = get_combo_keys(combo).to_vec();
let mut this_combo_passes = false; let mut this_combo_passes = false;