Mojira Archive
MC-184699

'/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

  1. Enter the following in chat
    /spreadplayers ~ ~ 1 10 under -1 false @s
    

    The command is considered valid

  2. Try to run the command
    It fails, as expected

Fixed

Marcono1234

[Mojang] Grum (Erik Broes)

2020-05-20, 06:27 PM

2021-08-18, 04:39 PM

2020-06-10, 02:17 PM

2

5

Confirmed

Low

Commands

20w21a

1.16 Pre-release 3