'/spreadplayers under' does not prevent invalid values
The bug
The /spreadplayers ... under option which was added in 20w21a does prevent invalid maxHeight values where it is never able to spread players, when parsing the arguments.
These are values <= 0.
Additionally it does not prevent values > 256 even though they are effectively the same as 256.
Reproduction steps
- Enter the following in chat
/spreadplayers ~ ~ 1 10 under -1 false @s
The command is considered valid - Try to run the command
It fails, as expected
2020-05-20, 06:27 PM
2021-08-18, 04:39 PM
2020-06-10, 02:17 PM
2
5