Ellpeck / PrettyPipes

Pretty Pipes is a simple to use, all-inclusive item transport mod featuring simple pipes that can be upgraded using modules to accomplish much more advanced tasks.
https://modrinth.com/mod/pretty-pipes
MIT License
21 stars 19 forks source link

IndexOutOfBoundsException when scrolling in FilterModifierModuleGui #159

Closed z33n00n closed 2 years ago

z33n00n commented 2 years ago

Hey, Whenever I want to adjust something in the Data Filter, MineCraft crashes.

Error message in the log:

java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 1 at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) ~[?:?] {} at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) ~[?:?] {} at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266) ~[?:?] {} at java.util.Objects.checkIndex(Objects.java:359) ~[?:?] {re:mixin} at java.util.ArrayList.get(ArrayList.java:427) ~[?:?] {re:mixin} at de.ellpeck.prettypipes.pipe.modules.modifier.FilterModifierModuleGui.updateWidgets(FilterModifierModuleGui.java:104) ~[PrettyPipes-1.12.6.jar%2398!/:1.12.6] {re:classloading} at de.ellpeck.prettypipes.pipe.modules.modifier.FilterModifierModuleGui.m_7979_(FilterModifierModuleGui.java:80) ~[PrettyPipes-1.12.6.jar%2398!/:1.12.6] {re:classloading} at net.minecraft.client.MouseHandler.m_168072_(MouseHandler.java:224) ~[client-1.18.2-20220404.173914-srg.jar%23111!/:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.gui.screens.Screen.m_96579_(Screen.java:528) ~[client-1.18.2-20220404.173914-srg.jar%23111!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:quark.mixins.json:client.ScreenMixin,pl:mixin:A,pl:runtimedistcleaner:A} at net.minecraft.client.MouseHandler.m_91561_(MouseHandler.java:222) ~[client-1.18.2-20220404.173914-srg.jar%23111!/:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.MouseHandler.m_168100_(MouseHandler.java:181) ~[client-1.18.2-20220404.173914-srg.jar%23111!/:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.util.thread.BlockableEventLoop.execute(BlockableEventLoop.java:103) ~[client-1.18.2-20220404.173914-srg.jar%23111!/:?] ...

Thank you for your work.