partial fix of dungeon

This commit is contained in:
pfyy 2022-08-25 22:29:31 +08:00 committed by Melledy
parent a25c681274
commit 1c3a6fc837

View File

@ -310,6 +310,7 @@ public class SceneScriptManager {
private void realCallEvent(int eventType, ScriptArgs params) { private void realCallEvent(int eventType, ScriptArgs params) {
try { try {
ScriptLoader.getScriptLib().setSceneScriptManager(this);
Set<SceneTrigger> relevantTriggers = new HashSet<>(); Set<SceneTrigger> relevantTriggers = new HashSet<>();
if (eventType == EventType.EVENT_ENTER_REGION || eventType == EventType.EVENT_LEAVE_REGION) { if (eventType == EventType.EVENT_ENTER_REGION || eventType == EventType.EVENT_LEAVE_REGION) {
List<SceneTrigger> relevantTriggersList = this.getTriggersByEvent(eventType).stream() List<SceneTrigger> relevantTriggersList = this.getTriggersByEvent(eventType).stream()