Amount of players who need to sleep to skip the night is calculated incorrectly
It appears that when calculating the amount of players who need to sleep in order to skip the night, that amount is rounded down, which is somewhat counterintuitive (but may well be intentional).
To reproduce
- Have two players in the same world
- Run /gamerule playersSleepingPercentage 100
- Enter a bed
→
1/2 players sleeping - Run /gamerule playersSleepingPercentage 99
- Enter a bed
→
1/1 players sleeping
2020-12-16, 07:47 PM
2021-02-17, 08:14 PM
2021-02-17, 09:04 AM
6
4