spreadplayers for one entity gives huge number as result for average distance
The bug
Using the /spreadplayers command with only one entity to move shows an incorrect average distance. See the attached screenshot 2017-11-09_14.49.09.png
.
Expected would be that no distance is displayed.
How to reproduce
/spreadplayers ~ ~ 10 20 false @p
Created Issue:
spreadplayers for one player gives huge number as result for average distance
/spreadplayers ~ ~ 10 20 false @p
This results in the output you can see in the attached screenshot.
It makes sense that the average distance can't be displayed if there is only one player, but then it shouldn't be displayed at all or displayed as 0.
/spreadplayers ~ ~ 10 20 false @p
This results in the output you can see in the attached screenshot.
It makes sense that the average distance can't be displayed if there is only one player, but then it shouldn't be displayed at all or displayed as 0.
The bug
Using the /spreadplayers command with only one entity to move shows an incorrect average distance. See the attached screenshot 2017-11-09_14.49.09.png
.
Expected would be that no distance is displayed.
How to reproduce
/spreadplayers ~ ~ 10 20 false @p
spreadplayers for oneplayergives huge number as result for average distancespreadplayers for one entity gives huge number as result for average distance
is duplicated by
relates to

Changed the description, I hope you are fine with that.
I am thank you for improving it
Confirmed for 17w50a
Still in 18w10c.
Confirmed for 18w14b
Can no longer reproduce. It now just shows "with an average distance of 0.00 blocks apart" which is just as good.
Tip for the reporter and anyone else who happens to see this comment: instead of needing to flush out the chat by spamming a period, there's an f3 shortcut that clears chat. I can't remember it offhand, but you can find it by bringing up the f3 shortcuts help with f3 + Q.