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
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.
- Set clear weather
- Open a world and leave it open for some minutes, but make sure it is not starting to rain or thunder
- Close the world and inspect the rainTime and thunderTime values in the level.dat file using for example NBTExplorer
- Sleep and wait until you are woken up
- Repeat step 3
→ The values were reset despite it not raining or thundering
Based on 1.12.2 decompiled using MCP 9.40
The method net.minecraft.world.WorldServer.wakeAllPlayers() always resets thunder and rain time.