mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-16 10:14:39 +00:00
[Feature] Keybinding Refactoring (#957)
Co-authored-by: Martin Robertz <[email protected]>
This commit is contained in:
1 parent
841b73c6fe
commit
26beb079f0
37 files changed
+353
-478
No files matched your search
@@ -24,12 +24,12 @@ public class PopupInputHandler implements IContainerInputHandler {
|
||||
@Override
|
||||
public boolean lastKeyTyped(GuiContainer gui, char keyChar, int keyID) {
|
||||
|
||||
if (NEIClientConfig.isKeyHashDown("gui.enchant") && canPerformAction("enchant")) {
|
||||
if (KeyManager.isHashDown("gui.enchant") && canPerformAction("enchant")) {
|
||||
NEICPH.sendOpenEnchantmentWindow();
|
||||
return true;
|
||||
}
|
||||
|
||||
if (NEIClientConfig.isKeyHashDown("gui.potion") && canPerformAction("potion")) {
|
||||
if (KeyManager.isHashDown("gui.potion") && canPerformAction("potion")) {
|
||||
NEICPH.sendOpenPotionWindow();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user