mojira.dev
MC-136471

Large numbers in "distance" target selector argument freeze game

When using a large number in the "distance" target selector argument the internal server seems to lock up, not accepting any other commands.

To reproduce, create a new world and run the following command:

/execute as @e[distance=..100000000] run say hi

This would let every entity in the loaded world say "hi", but instead one can observe that the internal server locks up (which can e.g. be seen from the fact that you cannot write in chat or execute commands anymore or that entities aren't processing etc.).

Normally I would expect that such a command is executed very quickly (especially in a freshly created world), as the large "distance" target selector argument specified as a half-open interval would target every entity just like "@e" would. Even if the area for targeting entities in is very large, only loaded entities can be targeted, so I would assume that checking the distance of each of those entities is a quickly executed task.

Linked issues

Comments 0

No comments.

RimaNari

(Unassigned)

Unconfirmed

Minecraft 1.13.1

Retrieved