mojira.dev
MC-199810

High numbers in /worldborder set and /worldborder add round to incorrect values

High numbers in /worldborder set and /worldborder add round to incorrect values. This is because the command parser uses a float, and it will round higher values, since it cannot represent them. This would be fixed by using a double instead. (All other position-related arguments also use doubles)

How to reproduce:
1. Set the world border size to a smaller value (/worldborder set 10)
2. Set the world border size to 59999998 (/worldborder set 59999998)
3. It will show up in chat as 60000000 (it rounded to the wrong number)

Linked issues

Comments 1

Thank you for your report!
We're tracking this issue in MC-187664, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Mojang Support – ✍️ Feedback and Suggestions – 📖 Game Wiki

ErrorCraft

(Unassigned)

Unconfirmed

(Unassigned)

1.16.2, 1.16.3 Release Candidate 1

Retrieved