mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2025-02-08 16:32:09 +01:00
Fix crash bug / weather listener loop
This commit is contained in:
parent
ab4e15fd4f
commit
eaf1cc0b13
@ -42,11 +42,7 @@ public class WorldListener implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST)
|
||||
public void onWeatherChange(WeatherChangeEvent event) {
|
||||
World world = event.getWorld();
|
||||
if (EditWorld.getByWorld(event.getWorld()) != null) {
|
||||
world.setStorm(false);
|
||||
world.setThundering(false);
|
||||
|
||||
if (event.toWeatherState()) {
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user