Skip to content

Update HandledScreenMixin.java - #5

Open
LIUKRAST wants to merge 1 commit into
kregerl:masterfrom
LIUKRAST:patch-1
Open

LIUKRAST wants to merge 1 commit into
kregerl:masterfrom
LIUKRAST:patch-1

Conversation

@LIUKRAST

Copy link
Copy Markdown

Please instead of checking keyCode == GLFW_KEY_E (which might have been changed by the user in his keyBinding settings, you should definitely use MinecraftClient.getInstance().options.keyInventory.matchesKey(keyCode, scanCode).

For keyCode == SearchableContainers.HIDE_KEY.getDefaultKey().getCode() same thing. If you getDefaultKey(), whats even the point of creating a custom keybinding? getDefaultKey() will always return H even if you change it. Please use SearchableContainers.HIDE_KEY.matchesKey(keyCode, scanCode) instead.

Using proper key checking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant