CraftLivingEntity#addPotionEffect ignores predefined effect.hasIcon() value resulting icon being controlled by effect.hasParticles().
Build 183.
I guess that should be fixed in the upstream, but I don't know where and how to report that :P
That method tells you whether there's a texture for that specific potion type, not whether the texture will get displayed.
Why are you able to set that value then?
It's about whether you should see the icon on the top right of the screen or not.
In the protocol there is indeed a flag to control the display of the icon in the client:
https://wiki.vg/Protocol#Entity_Effect
This is just using the wrong constructor internally and not passing the flag along like it should be. Should be easy to fix.
Apparently I'm stupid, sorry.
Most helpful comment
Apparently I'm stupid, sorry.