mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-01-10 09:47:42 +01:00
Fix console errors when generator is disabled
This commit is contained in:
parent
566038b3f3
commit
80d4d9165f
@ -506,9 +506,10 @@ public class Block implements Listener {
|
||||
return;
|
||||
|
||||
GeneratorManager generatorManager = skyblock.getGeneratorManager();
|
||||
if(generatorManager == null) return;
|
||||
|
||||
List<Generator> 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.
|
||||
|
Loading…
Reference in New Issue
Block a user