Fix issue with groups that dont have any suites

This commit is contained in:
Melledy 2022-05-19 02:19:18 -07:00
parent 4ef3080c62
commit 3feb98f08b

View File

@ -587,10 +587,10 @@ public class Scene {
// Load suites
int suite = group.init_config.suite;
if (suite == 0) {
if (suite == 0 || group.suites == null || group.suites.size() == 0) {
continue;
}
do {
var suiteData = group.getSuiteByIndex(suite);
suiteData.sceneTriggers.forEach(getScriptManager()::registerTrigger);