Fix weather lock flag.

Probably. Maybe.
Fixes WORLDGUARD-3452.
This commit is contained in:
wizjany 2015-05-29 02:26:32 -04:00
parent 255dd2d41a
commit 522ac459db

View File

@ -44,7 +44,10 @@ private void updatePlayerWeather(Player player, @Nullable WeatherType value) {
@Override @Override
protected void onInitialValue(Player player, ApplicableRegionSet set, WeatherType value) { protected void onInitialValue(Player player, ApplicableRegionSet set, WeatherType value) {
initialWeather = player.getPlayerWeather(); if (value == null) {
initialWeather = null;
return;
}
updatePlayerWeather(player, value); updatePlayerWeather(player, value);
} }