Title. I'm trying to use ClientTickEvent to play biome ambiance (backporting 1.16) and I noticed for a few ticks when I load the world, I see the wrong fog and it plays the wrong ambiance, but as soon as the world renders, the error is fixed. However with the engine I wrong the wrong sound effect proceeds to fade out, and then the right one comes in.
How can I check when the world is actually done loading, as when theWorld is loaded and stops being null it happens, as I'm only running the code when the world isn't null. (Since ClientTick runs everywhere, like on the main menu) It's as if the code starts running right before the world is fully loaded.
For clarity: This only happens when I join the world, exit the world and rejoin a world again. It doesn't happen when first joining, only joins after.