SPIGOT-3304: Respect duration from Vanilla /weather

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2017-06-09 16:17:08 +10:00
parent 47947b0f3b
commit c354c54394
2 changed files with 6 additions and 8 deletions

View File

@@ -771,6 +771,7 @@ public class CraftWorld implements World {
public void setStorm(boolean hasStorm) {
world.worldData.setStorm(hasStorm);
setWeatherDuration(0); // Reset weather duration (legacy behaviour)
}
public int getWeatherDuration() {
@@ -787,6 +788,7 @@ public class CraftWorld implements World {
public void setThundering(boolean thundering) {
world.worldData.setThundering(thundering);
setThunderDuration(0); // Reset weather duration (legacy behaviour)
}
public int getThunderDuration() {