Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-208613

Amount of players who need to sleep to skip the night is calculated incorrectly

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • 21w07a
    • 20w51a, 21w03a
    • None
    • Confirmed
    • Commands
    • Important

    Description

      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

      Attachments

        Activity

          People

            mgatland [Mojang] Matthew Gatland
            violine1101 [Mod] violine1101
            Votes:
            6 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              CHK: