diff --git a/src/main/java/com/songoda/skyblock/listeners/Block.java b/src/main/java/com/songoda/skyblock/listeners/Block.java index 0b19c20f..52363392 100644 --- a/src/main/java/com/songoda/skyblock/listeners/Block.java +++ b/src/main/java/com/songoda/skyblock/listeners/Block.java @@ -506,9 +506,10 @@ public class Block implements Listener { return; GeneratorManager generatorManager = skyblock.getGeneratorManager(); + if(generatorManager == null) return; + List generators = Lists.newArrayList(generatorManager.getGenerators()); - if (generatorManager == null || generators.size() == 0) - return; + if(generators == null || generators.isEmpty()) return; Collections.reverse(generators); // Use the highest generator available // Filter valid players on the island.