bte_optimization_fixes-1.50.0.jar
Curse Maven Snippet
What's new
Fix V-Tweaks challenger particles crashing singleplayer with OOM
V-Tweaks 1.19.2-4.0.13 spawns challenger mob particles from every
LivingTickEvent without a side check. On the physical client the proxy is
ClientProxy, which adds them straight to Minecraft's ParticleEngine, so in
singleplayer the integrated server thread writes to the particle queue
(an ArrayDeque) at the same time as the render thread. The queue gets
corrupted, grows without limit and the game crashes with
"Exception while adding particle" / OutOfMemoryError: Java heap space,
on whatever particle happens to be added last (water splash, etc.).
New client mixin vtweaks.ChallengerParticleRenderThreadMixin cancels
ClientProxy.addParticle when it is called from the logical server thread.
The client still draws the same particles from its own LivingTickEvent, and
dedicated servers are unaffected.
This mod has no additional files