Skip to content

Commit

Permalink
Fix crash bug / weather listener loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Sataniel98 committed May 31, 2016
1 parent ab4e15f commit eaf1cc0
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,7 @@ public void onChunkUnload(ChunkUnloadEvent event) {

@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);
}
Expand Down

0 comments on commit eaf1cc0

Please sign in to comment.