Game crashes when throwing out items from backpack inventory
D10King opened this issue ยท 3 comments
Mod Loader: Fabric 0.16.10
Mod Version: 9.1.22
Game Version: 1.20.1
(edit) Launcher: Prism 9.2
-
Describe the bug
when manually throwing away an item from the backpack inventory, by clicking the item, and moving it out of the GUI to throw it, my game stops responding and crashes -
Write steps to reproduce the bug
open backpack inventory, grab item from inventory (doesn't seem to matter what item) hover item outside of GUI, click to throw the item (Do not use "ctrl+q", as the bug will not be reproduced, and this function will work properly without crashing the game) -
What is expected behavior
Game will either close on its own after freezing up for a short time, or game will freeze and stop responding (seen in SS below) -
Screenshots (If applicable)
bug also seems to not occur if the item is in the player inventory, it must be in the backpack inventory, or the bug will not be reproduced
Can you share the crash log?
---- Minecraft Crash Report ----
Description: Container click
java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 189
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
at java.base/java.util.Objects.checkIndex(Objects.java:361)
at java.base/java.util.ArrayList.get(ArrayList.java:427)
at knot//net.minecraft.class_2371.get(class_2371.java:47)
at knot//com.tiviacz.travelersbackpack.inventory.menu.BackpackBaseMenu.method_30010(BackpackBaseMenu.java:265)
at knot//net.minecraft.class_1703.method_7593(class_1703.java:294)
at knot//com.tiviacz.travelersbackpack.inventory.menu.BackpackItemMenu.method_7593(BackpackItemMenu.java:59)
at knot//net.minecraft.class_636.method_2906(class_636.java:450)
at knot//net.minecraft.class_465.method_2383(class_465.java:548)
at knot//net.minecraft.class_465.method_25406(class_465.java:512)
at knot//net.minecraft.class_312.method_1605(class_312.java:100)
at knot//net.minecraft.class_437.method_25412(class_437.java:409)
at knot//net.minecraft.class_312.method_1601(class_312.java:100)
at knot//net.minecraft.class_312.method_22686(class_312.java:169)
at knot//net.minecraft.class_1255.execute(class_1255.java:102)
at knot//net.minecraft.class_312.method_22684(class_312.java:169)
at knot//org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
at knot//org.lwjgl.system.JNI.invokeV(Native Method)
at knot//org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3474)
at knot//com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(RenderSystem.java:237)
at knot//net.minecraft.class_310.method_1523(class_310.java:1244)
at knot//net.minecraft.class_310.method_1514(class_310.java:802)
at knot//net.minecraft.client.main.Main.main(Main.java:250)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:105)
at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129)
at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)