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

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 20w51a, 21w03a
    • Fix Version/s: 21w07a
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Commands
    • Mojang Priority:
      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

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

                Dates

                Created:
                Updated:
                Resolved:
                CHK: