mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-23 11:06:13 +01:00
Fix weather lock flag.
Probably. Maybe. Fixes WORLDGUARD-3452.
This commit is contained in:
parent
255dd2d41a
commit
522ac459db
@ -44,7 +44,10 @@ private void updatePlayerWeather(Player player, @Nullable WeatherType value) {
|
||||
|
||||
@Override
|
||||
protected void onInitialValue(Player player, ApplicableRegionSet set, WeatherType value) {
|
||||
initialWeather = player.getPlayerWeather();
|
||||
if (value == null) {
|
||||
initialWeather = null;
|
||||
return;
|
||||
}
|
||||
updatePlayerWeather(player, value);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user