Fix bad casting exceptions with scene garbages objects

This commit is contained in:
Melledy
2022-05-19 02:28:25 -07:00
parent 0dac404f0d
commit 8c860308ba
5 changed files with 60 additions and 5 deletions

View File

@@ -164,7 +164,10 @@ public class SceneScriptManager {
public void loadGroupFromScript(SceneGroup group) {
group.load(getScene().getId());
group.variables.forEach(var -> this.getVariables().put(var.name, var.value));
if (group.variables != null) {
group.variables.forEach(var -> this.getVariables().put(var.name, var.value));
}
this.sceneGroups.put(group.id, group);
if(group.regions != null){