mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 16:53:04 +08:00
fix(ActionScheduler): skip trigger callback when tick has no actions
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user