Removed lightning from what we're watching

This commit is contained in:
Eric Stokes 2011-08-07 21:06:50 -06:00
parent ff89bda57e
commit 1abcb187e6
2 changed files with 0 additions and 11 deletions

View File

@ -200,7 +200,6 @@ public class MultiverseCore extends JavaPlugin implements LoggablePlugin {
pm.registerEvent(Event.Type.WEATHER_CHANGE, this.weatherListener, Priority.Normal, this);
pm.registerEvent(Event.Type.THUNDER_CHANGE, this.weatherListener, Priority.Normal, this);
pm.registerEvent(Event.Type.LIGHTNING_STRIKE, this.weatherListener, Priority.Normal, this);
}
/**

View File

@ -1,6 +1,5 @@
package com.onarandombox.MultiverseCore.listeners;
import org.bukkit.event.weather.LightningStrikeEvent;
import org.bukkit.event.weather.ThunderChangeEvent;
import org.bukkit.event.weather.WeatherChangeEvent;
import org.bukkit.event.weather.WeatherListener;
@ -34,13 +33,4 @@ public class MVWeatherListener extends WeatherListener {
event.setCancelled((event.toThunderState() && !world.getWeatherEnabled()));
}
}
@Override
public void onLightningStrike(LightningStrikeEvent event) {
MVWorld world = this.plugin.getMVWorld(event.getWorld().getName());
if (world != null) {
// If it's going to start raining and we have weather disabled
event.setCancelled((!world.getWeatherEnabled()));
}
}
}