Fix for spawnerenabled.

This commit is contained in:
Brianna 2019-07-17 10:53:03 -04:00
parent 5b8d80e09d
commit bff203bcf6

View File

@ -20,7 +20,7 @@ public class SpawnerListeners implements Listener {
@EventHandler
public void onSpawn(SpawnerSpawnEvent event) {
if (!Setting.STACK_ENTITIES.getBoolean()) return;
if (!Setting.STACK_ENTITIES.getBoolean() || !instance.spawnersEnabled()) return;
SpawnerStackManager spawnerStackManager = instance.getSpawnerStackManager();
if (!spawnerStackManager.isSpawner(event.getSpawner().getLocation())) return;