From 50ca14f59307f7ff2c4f99a52fdb8c1cb83de47b Mon Sep 17 00:00:00 2001 From: Eyre_S Date: Thu, 22 Aug 2024 15:36:44 +0800 Subject: [PATCH] fix EventEnv's StateSource misaligned --- src/main/scala/cc/sukazyo/cono/morny/bot/api/EventEnv.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/cc/sukazyo/cono/morny/bot/api/EventEnv.scala b/src/main/scala/cc/sukazyo/cono/morny/bot/api/EventEnv.scala index 9061a1f..33750c6 100644 --- a/src/main/scala/cc/sukazyo/cono/morny/bot/api/EventEnv.scala +++ b/src/main/scala/cc/sukazyo/cono/morny/bot/api/EventEnv.scala @@ -28,11 +28,11 @@ class EventEnv ( //noinspection UnitMethodIsParameterless def setEventOk: Unit = - _status += State.OK(StackUtils.getStackTrace(1)(1)) + _status += State.OK(StackUtils.getStackTrace(1)(0)) //noinspection UnitMethodIsParameterless def setEventCanceled: Unit = - _status += State.CANCELED(StackUtils.getStackTrace(1)(1)) + _status += State.CANCELED(StackUtils.getStackTrace(1)(0)) def state: State|Null = _status.lastOption match