|
|
|
|
@ -42,7 +42,7 @@ public class LiveConfig { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static boolean isEmpty() { |
|
|
|
|
return get().getHome() == null; |
|
|
|
|
return get().getHome() == null || get().getHome().getGroups().isEmpty(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public LiveConfig init() { |
|
|
|
|
@ -99,6 +99,7 @@ public class LiveConfig { |
|
|
|
|
if (!object.has("lives")) return; |
|
|
|
|
for (JsonElement element : Json.safeListElement(object, "lives")) parse(Live.objectFrom(element)); |
|
|
|
|
if (home == null) setHome(lives.isEmpty() ? new Live() : lives.get(0)); |
|
|
|
|
LiveParser.start(home); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void parse(Live live) { |
|
|
|
|
|