From 1c3a6fc837fe63762fba4f166161c1011c60936c Mon Sep 17 00:00:00 2001 From: pfyy Date: Thu, 25 Aug 2022 22:29:31 +0800 Subject: [PATCH] partial fix of dungeon --- src/main/java/emu/grasscutter/scripts/SceneScriptManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/emu/grasscutter/scripts/SceneScriptManager.java b/src/main/java/emu/grasscutter/scripts/SceneScriptManager.java index c2547cce5..02ebfbec5 100644 --- a/src/main/java/emu/grasscutter/scripts/SceneScriptManager.java +++ b/src/main/java/emu/grasscutter/scripts/SceneScriptManager.java @@ -310,6 +310,7 @@ public class SceneScriptManager { private void realCallEvent(int eventType, ScriptArgs params) { try { + ScriptLoader.getScriptLib().setSceneScriptManager(this); Set relevantTriggers = new HashSet<>(); if (eventType == EventType.EVENT_ENTER_REGION || eventType == EventType.EVENT_LEAVE_REGION) { List relevantTriggersList = this.getTriggersByEvent(eventType).stream()