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

1.20.1 Causes a crash when destroying blocks on Valkyrien Skies ships #112

Open
LMaxRouterCN opened this issue Dec 25, 2024 · 1 comment

Comments

@LMaxRouterCN
Copy link

mod version 1.10.8
Valkyrien Skies version 2.3.0 beta5
crash report here:
错误报告-2024-12-25_17.13.30.zip

@LMaxRouterCN
Copy link
Author

Here is chatgpt says:

Bug Description:

The game crashes with an ArrayIndexOutOfBoundsException when rendering particles related to the TelekinesisParticle class in the Majrusz Enchantments mod. The error occurs because an invalid index (-1) is used when accessing a sprite in the particle texture set.

Crash Log:

net.minecraft.ReportedException: Ticking Particle
at net.minecraft.client.particle.ParticleEngine.m_107393_(ParticleEngine.java:399)
at net.minecraft.client.particle.ParticleEngine.m_107384_(ParticleEngine.java:375)
...
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 4
at com.google.common.collect.RegularImmutableList.get(RegularImmutableList.java:77)
at net.minecraft.client.particle.ParticleEngine$MutableSpriteSet.m_5819_(ParticleEngine.java:553)
at com.majruszsenchantments.particles.TelekinesisParticle.m_5989_(TelekinesisParticle.java:39)
at net.minecraft.client.particle.ParticleEngine.m_107393_(ParticleEngine.java:393)
...
Steps to Reproduce:

Install Majrusz Enchantments mod.
Trigger the Telekinesis effect or render the associated particles.
Suggested Fix:
Check the handling of the sprite index in the TelekinesisParticle class to ensure the index is valid before accessing the sprite list. Ensure proper bounds checking when retrieving a sprite from the particle set to avoid an ArrayIndexOutOfBoundsException.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant