From fcf46f09f023b53b86f104cc4ffb6c3f8c930729 Mon Sep 17 00:00:00 2001 From: Brianna Date: Fri, 12 Jun 2020 00:27:03 -0500 Subject: [PATCH] Don't throw errors without EpicSpawners installed. --- src/main/java/com/songoda/epicanchors/tasks/AnchorTask.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/songoda/epicanchors/tasks/AnchorTask.java b/src/main/java/com/songoda/epicanchors/tasks/AnchorTask.java index 961395f..0a92e14 100644 --- a/src/main/java/com/songoda/epicanchors/tasks/AnchorTask.java +++ b/src/main/java/com/songoda/epicanchors/tasks/AnchorTask.java @@ -6,7 +6,6 @@ import com.songoda.core.compatibility.ServerVersion; import com.songoda.epicanchors.EpicAnchors; import com.songoda.epicanchors.anchor.Anchor; import com.songoda.epicanchors.settings.Settings; -import com.songoda.epicspawners.EpicSpawners; import org.bukkit.*; import org.bukkit.block.Block; import org.bukkit.entity.Entity; @@ -122,9 +121,9 @@ public class AnchorTask extends BukkitRunnable { return; } - if (!epicSpawners || EpicSpawners.getInstance().getSpawnerManager() == null) continue; + if (!epicSpawners || com.songoda.epicspawners.EpicSpawners.getInstance().getSpawnerManager() == null) continue; - EpicSpawners.getInstance().getSpawnerManager().getSpawners().stream() + com.songoda.epicspawners.EpicSpawners.getInstance().getSpawnerManager().getSpawners().stream() .filter(spawner -> spawner.getWorld().isChunkLoaded(spawner.getX() >> 4, spawner.getZ() >> 4) && chunk == spawner.getLocation().getChunk()).forEach(spawner -> { Block block = spawner.getLocation().getBlock();