mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-09 04:20:26 +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
|
@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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user