Mojira Archive
MC-118565

Four negative signs in a selector which only has the potential to select one entity will attempt to parse as a UUID and fail

The bug

If a selector that only has the potential to select one entity (@p, @s, @r, @e[c=1], @a[c=1]) has 4 minus signs, it attempts and fails to parse as a UUID.

How to reproduce

Example command:

/testfor @p[x=-7,y=-3,z=-1,r=0,rxm=-3,c=1]

Which results in:

The entity UUID '@a[x=-7,y=-3,z=-1,r=0,rxm=-3,c=1]' is in an invalid format

Whereas the expected normal error message (for just not finding the entity) would be:

Selector '@a[x=-7,y=-3,z=-1,r=0,rxm=-3,c=1]' found nothing

Fixed

SirBenet

2017-06-10, 10:38 PM

2017-11-09, 02:35 AM

2017-11-09, 02:35 AM

1

1

Confirmed

Minecraft 1.12, Minecraft 1.12.2

Minecraft 17w45a