mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-10 13:02:57 +08:00
Fix issue with groups that dont have any suites
This commit is contained in:
parent
cd77fb90a3
commit
0dac404f0d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user