Crash on Player Tick (IndexOutOfBoundsException in EventAutoQuests)
dpachrom opened this issue · 2 comments
crash-2025-08-29_10.03.12-client.txt
Minecraft Version: 1.21.1
Forge/NeoForge Version: NeoForge 21.1.176
Mod Version: IndustrialUpgrade 3.3.1
Description:
The game crashes on world load / while ticking the player.
The crash is caused by EventAutoQuests.onWorldTick in IndustrialUpgrade,
which tries to access an out-of-range index in an ArrayList.
Crash Log (excerpt):
java.lang.IndexOutOfBoundsException: Index 30 out of bounds for length 30
at java.util.ArrayList.get(Unknown Source)
at com.denfop.events.client.EventAutoQuests.onWorldTick(EventAutoQuests.java:53)
...
Steps to Reproduce:
- Launch Minecraft with IndustrialUpgrade 3.3.1 (NeoForge 21.1.176, MC 1.21.1).
- Enter a world with the mod enabled.
- Crash occurs in a minute while the player is being ticked.
Expected Behavior:
The game should not crash. EventAutoQuests should validate the index before calling ArrayList.get().
Additional Context:
- The crash happens consistently on player tick (LocalPlayer).
- Removing IndustrialUpgrade resolves the crash.
- Looks like the AutoQuests system attempts to access index 30 in a list of size 30 (valid indices are 0–29).