mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-11-26 03:55:56 +01:00
Fix NPE on plugin reload
This commit is contained in:
parent
88a5df4fec
commit
732062fb61
@ -39,6 +39,7 @@ public class SpawnerListeners implements Listener {
|
||||
|
||||
@EventHandler
|
||||
public void onSpawn(SpawnerSpawnEvent event) {
|
||||
if (plugin.getStackingTask() == null) return; //Don't spam error when reloading the plugin
|
||||
if (!Settings.STACK_ENTITIES.getBoolean()
|
||||
|| !plugin.spawnersEnabled()
|
||||
|| plugin.getStackingTask().isWorldDisabled(event.getLocation().getWorld())) return;
|
||||
|
Loading…
Reference in New Issue
Block a user