-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
None
-
Affects Version/s: None
-
Environment:
CraftBukkit
-
N/A
Steps to reproduce:
- Enter the server
- Clear the weather with "/weather clear"
- Run the command "/weather rain 10"
Expected result:
- Rain lasts for only the time you enter
Actual result:
- Rain lasts until cleared
This was tested on both Vanilla 1.12 and CraftBukkit 1.12, it was only reproducible on CraftBukkit, I did not test on Spigot.
This is due to the duration being set before it is set to rain or thunder, I have attached a patch for the CommandWeather class that resolves this bug.