diff --git a/CHANGELOG.md b/CHANGELOG.md index 3262c588..23beb416 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2101.1.35] + +### Fixed +* Fixed keymap modifier checks on NeoForge for keybindings which have no modifier + * They were being matched even when a modifier key was pressed (caused issues with FTB Quests Tab & Shift-Tab behavior) + ## [2101.1.34] ### Added diff --git a/gradle.properties b/gradle.properties index bef70bf3..11facb68 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ org.gradle.daemon=false # Mod mod_id=ftblibrary readable_name=FTB Library -mod_version=2101.1.34 +mod_version=2101.1.35 mod_author=FTB Team # Maven archives_base_name=ftb-library diff --git a/neoforge/src/main/java/dev/ftb/mods/ftblibrary/util/neoforge/InputImpl.java b/neoforge/src/main/java/dev/ftb/mods/ftblibrary/util/neoforge/InputImpl.java index 8826bd50..978afbcb 100644 --- a/neoforge/src/main/java/dev/ftb/mods/ftblibrary/util/neoforge/InputImpl.java +++ b/neoforge/src/main/java/dev/ftb/mods/ftblibrary/util/neoforge/InputImpl.java @@ -54,7 +54,7 @@ private boolean matchModifier(KeyMapping mapping) { case CONTROL -> Screen.hasControlDown(); case SHIFT -> Screen.hasShiftDown(); case ALT -> Screen.hasAltDown(); - case NONE -> true; + case NONE -> !Screen.hasAltDown() && !Screen.hasControlDown() && !Screen.hasShiftDown(); }; }