Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArrayIndexOutOfBoundsException Crash in Lithium 0.11.3 (Minecraft 1.20.1) #622

Open
AmeriBaha opened this issue Feb 12, 2025 · 2 comments
Open
Labels
A-mods Area: Mod Compatibility F-has-workaround Flag: There is a workaround available

Comments

@AmeriBaha
Copy link

I encountered a crash when using Lithium 0.11.3 with Minecraft 1.20.1, which results in an ArrayIndexOutOfBoundsException. The crash occurs while interacting with the PonderUI interface from the Create mod. The game crashes with the following error:

java.lang.ArrayIndexOutOfBoundsException: Index 64 out of bounds for length 24 at net.minecraft.class_1297.handler$glb000$lithium$tryShortcutFluidPushing(class_1297.java:19363)

Steps to Reproduce:

  1. Load Minecraft 1.20.1 with Fabric and the following mods enabled:
  • Lithium 0.11.3
  • Create 0.5.1-j-build.1631+mc1.20.1
  • Fabric API 0.92.3+1.20.1
  1. Open the PonderUI interface in Create.
  2. The game crashes immediately with the above error.

Additional Details:

  • This crash appears to be related to the tryShortcutFluidPushing method in Lithium.
  • It seems to involve entity movement in fluids.
  • Disabling Lithium prevents the crash from occurring.
  • The issue does not appear when using Create without Lithium.
  • No other performance-related mods like Sodium or Starlight seem to be affecting this issue.

Crash Report: crash-2025-02-12_17.28.46-client.txt

Let me know if you need additional information! ^^

@2No2Name
Copy link
Member

For now you can work around the issue by adding the following line to the lithium.properties file in the config folder:
mixin.entity.collisions.fluid=false

@2No2Name 2No2Name added A-mods Area: Mod Compatibility F-has-workaround Flag: There is a workaround available labels Feb 13, 2025
@2No2Name
Copy link
Member

This compatibility issue might be caused by a custom create fake world returning a vertical section count that does not correspond to the size of the chunk section array, while lithium blindly assumes them to match. However, I did not check their code yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-mods Area: Mod Compatibility F-has-workaround Flag: There is a workaround available
Projects
None yet
Development

No branches or pull requests

2 participants