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

Sleeping always resets time until rain

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.7.10, Minecraft 14w30b, Minecraft 14w30c, Minecraft 14w31a, Minecraft 1.12.2, Minecraft 17w50a, Minecraft 1.13.1, Minecraft 1.14.1, 1.14.4, 19w34a, 19w35a
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      When all players are sleeping and then woken up, rain and thunder times are always reset, regardless whether or not it was raining while the players were sleeping.

      How to reproduce

      1. Set clear weather
        /weather clear
        
      2. Open a world and leave it open for some minutes, but make sure it is not starting to rain or thunder
      3. Close the world and inspect the rainTime and thunderTime values in the level.dat file using for example NBTExplorer
      4. Sleep and wait until you are woken up
      5. Repeat step 3
        The values were reset despite it not raining or thundering

      Code analysis

      Based on 1.12.2 decompiled using MCP 9.40

      The method net.minecraft.world.WorldServer.wakeAllPlayers() always resets thunder and rain time.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Tkpi ChocolateChip Cookies
              • Votes:
                11 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: