Fixed issue with scene groups after merge

This commit is contained in:
Melledy 2022-05-16 22:09:10 -07:00
parent 81183db104
commit df580bf519

View File

@ -15,7 +15,7 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import static emu.grasscutter.Configuration.SCRIPTS_FOLDER; import static emu.grasscutter.Configuration.*;
@ToString @ToString
@Setter @Setter
@ -68,7 +68,7 @@ public class SceneGroup {
setLoaded(true); setLoaded(true);
CompiledScript cs = ScriptLoader.getScriptByPath( CompiledScript cs = ScriptLoader.getScriptByPath(
SCRIPTS_FOLDER + "Scene/" + sceneId + "/scene" + sceneId + "_group" + id + "." + ScriptLoader.getScriptType()); SCRIPT("Scene/" + sceneId + "/scene" + sceneId + "_group" + id + "." + ScriptLoader.getScriptType()));
if (cs == null) { if (cs == null) {
return this; return this;