mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-01-25 08:51:33 +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;
|
return;
|
||||||
|
|
||||||
GeneratorManager generatorManager = skyblock.getGeneratorManager();
|
GeneratorManager generatorManager = skyblock.getGeneratorManager();
|
||||||
|
if(generatorManager == null) return;
|
||||||
|
|
||||||
List<Generator> generators = Lists.newArrayList(generatorManager.getGenerators());
|
List<Generator> generators = Lists.newArrayList(generatorManager.getGenerators());
|
||||||
if (generatorManager == null || generators.size() == 0)
|
if(generators == null || generators.isEmpty()) return;
|
||||||
return;
|
|
||||||
Collections.reverse(generators); // Use the highest generator available
|
Collections.reverse(generators); // Use the highest generator available
|
||||||
|
|
||||||
// Filter valid players on the island.
|
// Filter valid players on the island.
|
||||||
|
Loading…
Reference in New Issue
Block a user