Chorus fruit and Enderman can teleport to outside the world border and into powder snow
Open
23
The Bug
Endermen and chorus fruit consider blocks outside of the world border, and powder snow as valid teleporting locations.
Note: This report contains endermen and chorus fruit because as of 1.11.2 they use the same method (net.minecraft.entity.EntityLivingBase.attemptTeleport(double, double, double)) to teleport.
How to reproduce
Set the center of the world border to your current position and to 10 blocks wide
/worldborder center ~ ~
/worldborder set 10
Obtain some chorus fruit and eat it until you end up outside of the world border → ❌ Notice how chorus fruit considers blocks outside of the world border as valid teleporting locations
Summon an enderman and make it teleport by placing some water nearby → ❌ Notice how endermen consider blocks outside of the world border as valid teleporting locations
Examples
Here are a few examples:
Enderman:
[media]
[media]
Chorus fruit: Video:
[media]
Expected behavior
The expected behavior would be that endermen and chorus fruit consider blocks outside of the world border, and powder snow as invalid teleporting locations.
This issue relates to MC-102836.