fix EventEnv's StateSource misaligned

This commit is contained in:
A.C.Sukazyo Eyre 2024-08-22 15:36:44 +08:00
parent c632df4cd8
commit 50ca14f593
Signed by: Eyre_S
GPG Key ID: C17CE40291207874

View File

@ -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