mojira.dev
MC-208613

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

  1. Have two players in the same world

  2. Run /gamerule playersSleepingPercentage 100

  3. Enter a bed
    → ✔ 1/2 players sleeping

  4. Run /gamerule playersSleepingPercentage 99

  5. Enter a bed
    → ❌ 1/1 players sleeping

Linked issues

Comments 2

Can confirm in 21w03a.

[Mod] violine1101

mgatland

Confirmed

Important

Commands

20w51a, 21w03a

21w07a

Retrieved