Remove obsolete code in ScriptLib.java (#2263)

This commit is contained in:
Nazrin 2023-07-14 16:37:08 -07:00 committed by GitHub
parent a4d5de06d1
commit d62394e35e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -256,12 +256,6 @@ public class ScriptLib {
Grasscutter.getLogger().warn("trying to get suite that doesn't exist: {} {}", groupId, suite);
return 1;
}
// avoid spawn wrong monster
if(getSceneScriptManager().getScene().getChallenge() != null)
if(!getSceneScriptManager().getScene().getChallenge().inProgress() ||
getSceneScriptManager().getScene().getChallenge().getGroup().id != groupId){
return 0;
}
this.getSceneScriptManager().addGroupSuite(groupInstance, suiteData);
return 0;