The bug
In ItemGlassBottle.java
(MCP name) the Radius
of the dragon breath cloud gets decremented by 0.5 for every right-click.
The clouds from the purple fireballs vanish when the size is 0, but the clouds from the dragon when he is in the middle vanish after time.
Even when the clouds radius is less than 0 the cloud stays there.
Visually the negative sized cloud starts to grow again with every right-click.
Video: https://youtu.be/QLzV25kjl3Y
What I expected to happen was...
If there is not enough cloud left, i would not be able to fill the bottle.
What actually happened was...
Cloud grows bigger.
Steps to reproduce
Summon an enderdragon with a custom UUID
/summon ender_dragon ~ ~ ~ {NoAI:1b,UUIDLeast:0L,UUIDMost:0L}
Summon an area effect cloud with the ender dragon as owner
/summon area_effect_cloud ~ ~ ~ {Duration:2000,Radius:5f}
Start right clicking the area effect cloud with glass bottles
→ The cloud will shrink, then grow again and vanish after some time
Linked issues
is duplicated by 5
Attachments
Comments 7
Can confirm for 1.12.2...
And i did a video to show:
https://youtu.be/XCTSDp0dXiM
Confirmed for 1.14, 1.14.1, and 1.14.2
I have a fix available in the [Paper project|https://github.com/PaperMC/Paper/pull/2089].
With map making, we need to have area effect clouds with a radius equal to 0.0F because it's the least heavy entity in this state.
This bug must be corrected but I saw in the code that Mojang want to kill area effect clouds with a radius under 0.5F ("if (f < 0.5F)" in "net/minecraft/server/EntityAreaEffectCloud.java").
If this bug is corrected, please kill it when it is strictly inferior to 0.0F.
Can confirm. Here's another video of the issue: https://youtu.be/QLzV25kjl3Y
Confirmed for 17w17b