WorldGuard

WorldGuard

8M Downloads

Incorrect weather

LadyCailinBot opened this issue ยท 2 comments

commented

WORLDGUARD-3452 - Reported by PseudoKnight

After weather-lock was added, sometimes a player will get the incorrect weather. (most often noticed when traveling between worlds) This is without having touched the new weather-lock flag. The symptoms of this results in storms for players that can't be cleared without flushstates, whether storms were disabled in that world with Multiverse or not.

commented

Comment by PseudoKnight

I've since reverted this commit in a custom build because of how annoying this is to everyone.

Player move and teleport handling are enabled. I can't think of any other applicable settings, but I can provide more information upon request. I'd be surprised if no one else is experiencing this.

commented

Comment by wizjany

Ok initially I thought this was impossible because if you never touch the flag the handler should never trigger, but it seems that onInitialValue still gets called (with null) when the handler is initialized.
So throwing out null right here: https://github.com/sk89q/WorldGuard/blob/master/src/main/java/com/sk89q/worldguard/session/handler/WeatherLockFlag.java#L47 might work. Don't have time to change/test now though.