Describe the bug
The module search function crashes the game when you press Enter, regardless of the text you entered.
- If the search field is empty -> crash
- If the search query does not match any module -> crash
- Even random input (e.g. a single letter) -> crash
To Reproduce
Steps to reproduce the behavior:
- Open the RusherHack GUI
- Open the module search
- Type nothing OR type a query that returns no results
- Press Enter
- Your game is crashing
Additional context
Crash error:
net.minecraft.class_148: keyPressed event handler
at knot/net.minecraft.class_309.method_1466(class_309.java:438) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_309.method_22678(class_309.java:527) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_1255.execute(class_1255.java:110) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_309.method_22676(class_309.java:527) ~[client-intermediary.jar:?]
at knot/org.lwjgl.glfw.GLFWKeyCallbackI.callback(GLFWKeyCallbackI.java:44) ~[lwjgl-glfw-3.3.3.jar:?]
at knot/org.lwjgl.system.JNI.invokeV(Native Method) ~[lwjgl-3.3.3.jar:?]
at knot/org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3438) ~[lwjgl-glfw-3.3.3.jar:?]
at knot/com.mojang.blaze3d.systems.RenderSystem.pollEvents(RenderSystem.java:149) ~[client-intermediary.jar:?]
at knot/com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:170) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_1041.method_15998(class_1041.java:318) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_310.method_1523(class_310.java:1361) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_310.method_1514(class_310.java:922) [client-intermediary.jar:?]
at knot/net.minecraft.client.main.Main.main(Main.java:267) [client-intermediary.jar:?]
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480) [fabric-loader-0.16.10.jar:?]
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) [fabric-loader-0.16.10.jar:?]
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) [fabric-loader-0.16.10.jar:?]
at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:115) [NewLaunch.jar:?]
at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129) [NewLaunch.jar:?]
at org.prismlauncher.EntryPoint.main(EntryPoint.java:70) [NewLaunch.jar:?]
Caused by: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100) ~[?:?]
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106) ~[?:?]
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302) ~[?:?]
at java.base/java.util.Objects.checkIndex(Objects.java:385) ~[?:?]
at java.base/java.util.ArrayList.get(ArrayList.java:427) ~[?:?]
at org.rusherhack.client.ѳ.b(ѳ.java) ~[?:?]
at org.rusherhack.client.ѳ.keyTyped(ѳ.java:285) ~[?:?]
at org.rusherhack.client.ξ.keyTyped(ξ.java:207) ~[?:?]
at org.rusherhack.client.ü.method_25404(ü.java:84) ~[?:?]
at knot/net.minecraft.class_309.mixinextras$bridge$method_25404$34(class_309.java) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_309.wrapOperation$zol000$fabric-screen-api-v1$invokeKeyPressedEvents(class_309.java:666) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_309.method_1466(class_309.java:423) ~[client-intermediary.jar:?]
... 18 more```
Describe the bug
The module search function crashes the game when you press Enter, regardless of the text you entered.
To Reproduce
Steps to reproduce the behavior:
Additional context
Crash error: