From d62394e35e950c22e630da1bd391ee79a7dca4b2 Mon Sep 17 00:00:00 2001 From: Nazrin Date: Fri, 14 Jul 2023 16:37:08 -0700 Subject: [PATCH] Remove obsolete code in ScriptLib.java (#2263) --- src/main/java/emu/grasscutter/scripts/ScriptLib.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/java/emu/grasscutter/scripts/ScriptLib.java b/src/main/java/emu/grasscutter/scripts/ScriptLib.java index f967d3101..abf16983e 100644 --- a/src/main/java/emu/grasscutter/scripts/ScriptLib.java +++ b/src/main/java/emu/grasscutter/scripts/ScriptLib.java @@ -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;