Skip to content

Commit

Permalink
Fix #100 - Add workaround for null worlds
Browse files Browse the repository at this point in the history
  • Loading branch information
LunNova committed Aug 12, 2018
1 parent 97a4ca3 commit b51137d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public void start() {
val worldList = new ArrayList<WorldServer>();
if (worlds.equals("all")) {
Collections.addAll(worldList, DimensionManager.getWorlds());
worldList.removeIf(Objects::isNull);// #100 null world in world list?
} else {
// TODO: handle multiple entries, split by ','
worldList.add(DimensionManager.getWorld(Integer.parseInt(worlds)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ public void start() {
val worldList = new ArrayList<WorldServer>();
if (worlds.equals("all")) {
Collections.addAll(worldList, DimensionManager.getWorlds());
worldList.removeIf(Objects::isNull);// #100 null world in world list?
} else {
// TODO: handle multiple entries, split by ','
worldList.add(DimensionManager.getWorld(Integer.parseInt(worlds)));
Expand Down

0 comments on commit b51137d

Please sign in to comment.