mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-25 19:46:30 +00:00
Remove obsolete code in ScriptLib.java (#2263)
This commit is contained in:
parent
a4d5de06d1
commit
d62394e35e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user