Skip to content

Commit

Permalink
Fixed a NPE caused when upgrades are disabled (#818)
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerBenGera committed Jan 4, 2022
1 parent 95d79b8 commit 264e9b4
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -7,7 +7,8 @@ public final class WildStackerListener implements Listener {

@EventHandler
public void onWildStackerStackSpawn(com.bgsoftware.wildstacker.api.events.SpawnerStackedEntitySpawnEvent e) {
UpgradesListener.IMP.handleSpawnerSpawn(e.getSpawner());
if (UpgradesListener.IMP != null)
UpgradesListener.IMP.handleSpawnerSpawn(e.getSpawner());
}

}

0 comments on commit 264e9b4

Please sign in to comment.