mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-16 08:56:04 +01:00
Fix bad casting exceptions with scene garbages objects
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user