IndexOutOfBounds pressing the - (remove) button in empty tag filter
Fenekhu opened this issue · 4 comments
LaserIO version
1.5.2
Minecraft Version
1.19.2
Forge Version
43.2.6
Modpack & Version
All The Mods 8
Do you have optifine installed?
I have other rendering based mods installed
Describe the issue
see title
Steps to reproduce
- open tag filter
- press the - (remove) button with nothing in the list of tags
- game crash
Expected behaviour
nothing happens, no game crash
Screenshots
No response
Log files
Additional information
No response
I also got this bug.
But i could only reproduce it in Atm8 and nowhere else. I couldn't find any array access in the code so i figured it had something to do with the pack and didnt open an issue
I couldn't find any array access in the code
if (selectedSlot != -1) {
tags.remove(displayTags.get(selectedSlot));
selectedSlot = -1;
}
its the displayTags.get
. The selected slot stuff seems like it should be preventing this from happening, but something must be going wrong that causes the selected slot to be 0, not -1, even when there are no tags.
I wonder if this is also the reason that the fluid filter ui doesn’t work in atm8. Something is doing weird things to other mods screens. I haven’t been able to figure out which mod is causing it. If anyone does please let me know.