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

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 20w51a, 21w03a
    • 21w07a
    • 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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                CHK: