fix: no wether update after "/p flag remove weather"

no wether update after "/p flag remove weather" #1723
This commit is contained in:
Opachl 2017-11-15 11:14:14 +01:00
parent 734c4bb5fe
commit 9413ce0880

View File

@ -236,9 +236,13 @@ public class PlotListener {
if (plot.getFlag(Flags.TIME).isPresent()) {
player.setTime(Long.MAX_VALUE);
}
if (plot.getFlag(Flags.WEATHER).isPresent()) {
//always reset the weather on leave to default
//Flags.WEATHER
//CASE: FLAG SET -> RESET -> Need update to World Weather
//CASE: FLAG NOT SET -> RESET -> Need update to World Weather. We could came from Plot.reEnter() which is used to update flag changes
player.setWeather(PlotWeather.RESET);
}
Location lastLoc = player.getMeta("music");
if (lastLoc != null) {
player.deleteMeta("music");