mchorse / metamorph

Morphing mod for Minecraft 1.12.2
Other
72 stars 42 forks source link

Add config to prevent self morph particles #309

Open asanetargoss opened 8 months ago

asanetargoss commented 8 months ago

A bigger PR than the first two.

This fix prevents spawning particles in first-person, which makes using a blaze morph easier. Because this may interfere with other mods, a config option has been provided to disable it if needed.

The fix wraps every vanilla IWorldEventListener. When spawning client-side particles from the user's morph while in first person, the wrapper is passed a flag which causes it to not spawn particles.