Jump to content

[SOLVED] [1.14.4] Redundant texture list for particle


Recommended Posts

I'm trying to implement a custom particle type for my new 1.14 mod, but during the loading screen I get a crash citing "Redundant texture list for particle".  The full log file can be found here: https://pastebin.com/vuP4QESv


From what I can tell, the problem appears to be a race condition in the ParticleManager initialization process.  I believe so because if I park a breakpoint at the start of ParticleManager#loadTextureLists and wait for even a second or two, then the game loads successfully and my particles appear properly in game. 


I'm registering the particle type in response to the appropriate registry event, and registering the particle factory in response to the FMLClientSetupEvent, which I think is as it should be.  The code for my mod can be found here, specifically the point where I register the particle factory: https://github.com/daedalus4096/PrimalMagic/blob/0e56bff9bcc0bc4ff691d8d5cf23322a017f108f/src/main/java/com/verdantartifice/primalmagic/proxy/ClientProxy.java#L38


Any advice you can offer on how to deal with this race condition would be greatly appreciated.  Thanks in advance!

Edited by Daedalus4096
Link to comment
Share on other sites

After doing some digging in the Minecraft initialization code, I found the solution to my problem: I was registering my particle factory in response to the wrong event.  Rather than doing it during client setup, it turns out there's an event specifically for when you're supposed to register your particle factories: the aptly-named ParticleFactoryRegisterEvent.  After moving my factory registration code there, everything seems to load just fine.  Thanks anyway!

Link to comment
Share on other sites

  • Daedalus4096 changed the title to [SOLVED] [1.14.4] Redundant texture list for particle
  • 7 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.