From 3feb98f08b4600ae9cd1493ab90706cd1c1ba97e Mon Sep 17 00:00:00 2001 From: Melledy <52122272+Melledy@users.noreply.github.com> Date: Thu, 19 May 2022 02:19:18 -0700 Subject: [PATCH] Fix issue with groups that dont have any suites --- src/main/java/emu/grasscutter/game/world/Scene.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/emu/grasscutter/game/world/Scene.java b/src/main/java/emu/grasscutter/game/world/Scene.java index 0852ffa6c..57f11fa69 100644 --- a/src/main/java/emu/grasscutter/game/world/Scene.java +++ b/src/main/java/emu/grasscutter/game/world/Scene.java @@ -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);