Fix Create Keybind Crash

Quick rating

Community listing page, reviews here may not be monitored by the author.

Fix Create Keybind Crash

No reviews yet

Fixes the pesky Create keybind crash with a mixin based on fix #10225

Mod Loaders
Minecraft

About

Description

This mod has one sole purpose: To fix a crash whenever you type in the Creative Mode Tab search bar with Create installed.

Explanation of how it works and what was happening in the crash:

The mixin used in this mod overrides behavior with isKeyPressed in the Create AllKeys class. This method is responsible for the crash, as it does not have a check for -1 type keys (the fix may be in a future version of Create since it is already on GitHub). The key code that crashes is 'unknown' to MC when its method 'charTyped' is called. So all keys -1 and lower are skipped, and the game will continue as normal.

Create 6.0.8 was the last version where this bug seemingly did not exist. Ever since 6.0.10 however, the bug was found and is not patched in that version. This mod mixins to the isKeyPressed and stops any invalid key from entering into it, instead treating the key as if it was never pressed.

Current Mods Checked For Compatibility:

  • Create (6.0.10, invalid/unassigned keys do not crash the game, and proper keys still work)
  • Ponder (pondering keybind still works)

Report issues here: https://github.com/CreativeMasterBonin/fixcreatekeybindcrash/issues

This mod is not a permanent must-have. If Create fixes the issue in a current release, you may not need this mod anymore for the foreseable future.

This mod aims to fix a bug when typing in the Creative Inventory Tab search bar when Create is installed. Create checks for key presses almost always, but if a keybind is not assigned or invalid, the entire game crashes when pressing a key in this area.

This mod uses a mixin to override this potential problem by treating the bad keybind as a key not being pressed, thus bypassing the issue by returning a valid result of 'false'.

Note: The mod has been tested with the following mod versions:

  • Create 6.0.10 (invalid/unassigned keybinds do not crash anymore, assigned keys still work)
  • Ponder (ponder keybind still works)

Other mods have not been tested extensively, but casual-play should result in most Create addons working as intended.