Implement "off" to PlotWeather flag and make it default

- Players with "player weather" will no longer have their weather reset on plots that do not set the PlotWeather flag
This commit is contained in:
dordsor21
2021-06-10 11:43:12 +01:00
parent 942d799c9c
commit 3cd9b76805
4 changed files with 13 additions and 6 deletions

View File

@ -265,7 +265,10 @@ public class BukkitPlayer extends PlotPlayer<Player> {
switch (weather) {
case CLEAR -> this.player.setPlayerWeather(WeatherType.CLEAR);
case RAIN -> this.player.setPlayerWeather(WeatherType.DOWNFALL);
default -> this.player.resetPlayerWeather();
case WORLD -> this.player.resetPlayerWeather();
default -> {
//do nothing as this is PlotWeather.OFF
}
}
}