[IU] Industrial Upgrade

[IU] Industrial Upgrade

368k Downloads

Crash on Player Tick (IndexOutOfBoundsException in EventAutoQuests)

dpachrom opened this issue · 2 comments

commented

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:

  1. Launch Minecraft with IndustrialUpgrade 3.3.1 (NeoForge 21.1.176, MC 1.21.1).
  2. Enter a world with the mod enabled.
  3. 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).
commented

there has been a mod version 3.3.1.15 for a long time, you have 3.3.1

commented

3.3.1 mod version is the one that comes with Release: IUH1.21.1-1.0.6.1.zip in case you want to do a new release with the updated mod 3.3.1.15 (I already did it manually for my downloaded pack)