fix(ActionScheduler): skip trigger callback when tick has no actions

This commit is contained in:
2026-02-09 20:54:35 +08:00
parent 2db1bdf3e9
commit a5d26769e8

View File

@@ -188,6 +188,8 @@ class ActionScheduler : AgentRunningSubModule<Set<ScheduledActionData>, Void>()
// 取当前 tick、推进过程中经过的 tick 对应任务,异步启动
}
toTrigger?.let {
if (it.isEmpty()) return@let
onTrigger(it)
log.debug("Executing action at hour {} tick {}", launchingHour, tick)
}