[Bug]: [Fabric] Other mods are not obtain the real key
bug
### Steps to Reproduce the Bug
1. Install JEI and Keymap (this is only a example)
2. Open the keybinding screen
### Expected Behavior
JEI's key are not set to `NONE`, and set key work
### Actual Behavior
JEI's key are all set to `NONE`, and set key not work
### Mod Pack URL (Optional)
https://modrinth.com/mod/keymap-maintained
### Mod Pack Version (Optional)
0.11.2
### Extra Notes (Optional)
Some other mods use `KeyMappingHelper.getBoundKeyOf(KeyMapping)` or `@Accessor("key")` to get the key of `KeyMapping`.
But in JEI it used a `realKey` in JEI's KeyMappings, so other mod will only get `NONE`.
(example mod are Keymap, there are one example mod, but can excepted affect more mods)
That's are why I removed using `realKey` in #4324, but may have some bugs?
It reimport in https://github.com/mezz/JustEnoughItems/commit/c4b2a39e39a4ca5aafde3d6f8195ca1edbefb2ab (26.1 https://github.com/mezz/JustEnoughItems/commit/82826ffc38c4d8d124a86f65b9fac8bf5ac134fd)
### latest.log
_No response_
关闭于 15 天前 2 条评论