mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Fix ToggleableKeyBinding differences to vanilla. (#7338)
This commit is contained in:
1 parent
b9b17d8331
commit
37be3aff2d
4 files changed
+24
-1
No files matched your search
@@ -55,6 +55,11 @@ public interface IForgeKeybinding
|
||||
|
||||
void setKeyModifierAndCode(KeyModifier keyModifier, InputMappings.Input keyCode);
|
||||
|
||||
default boolean isConflictContextAndModifierActive()
|
||||
{
|
||||
return getKeyConflictContext().isActive() && getKeyModifier().isActive(getKeyConflictContext());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true when one of the bindings' key codes conflicts with the other's modifier.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user