Skip to content

Commit

Permalink
Fix IllegalStateException (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
MicrocontrollersDev authored Jan 12, 2024
1 parent 6aab425 commit 958e85c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public void keyboardInput(GuiScreenEvent.KeyboardInputEvent.Post event) {
//#endif
if (gui instanceof GuiMainMenu) {
int key = Keyboard.getEventKey();
if (Keyboard.isKeyDown(key) && !Keyboard.isRepeatEvent()) {
if (Keyboard.isCreated() && Keyboard.isKeyDown(key) && !Keyboard.isRepeatEvent()) {
int i = next + 1;
next = (key >> 3) * ((7 & key) + (i << 1)) == sequence[next] ? i : 0;
if (next > 9) {
Expand Down

0 comments on commit 958e85c

Please sign in to comment.