Skip to content

Commit 5743eed

Browse files
committed
fixing #1
1 parent 64a7aea commit 5743eed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ yarn_mappings=1.21+build.9
99
loader_version=0.15.11
1010

1111
# Mod Properties
12-
mod_version=2.3
12+
mod_version=2.4
1313
maven_group=net.anvian.inventorytweaks
1414
archives_base_name=InventoryTweaks
1515

src/main/java/net/anvian/inventorytweaks/mixin/MixinKeyInputHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
public class MixinKeyInputHandler {
1818
@Inject(method = "keyPressed", at = @At("HEAD"))
1919
private void onKeyPressed(int keyCode, int scanCode, int modifiers, CallbackInfoReturnable<Boolean> cir) {
20-
if (keyCode == ModKeyBinding.keyBinding.getDefaultKey().getCode()) {
20+
if (ModKeyBinding.keyBinding.matchesKey(keyCode, scanCode)) {
2121
ScreenHandler screenHandler = MinecraftClient.getInstance().player.currentScreenHandler;
2222
Screen screen = MinecraftClient.getInstance().currentScreen;
2323

0 commit comments

Comments
 (0)