This commit is contained in:
theone1000 2019-10-18 19:41:33 -06:00
commit 33c8bf8ac9
2 changed files with 4 additions and 3 deletions

View File

@ -3,7 +3,7 @@ image: gradle:alpine
variables:
name: "FabledSkyBlock"
path: "/builds/$CI_PROJECT_PATH"
version: "2.0.4"
version: "2.0.5"
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle

View File

@ -512,9 +512,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.