Posted October 5, 20196 yr 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 October 5, 20196 yr by Daedalus4096
October 6, 20196 yr Author 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!
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.