mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 08:43:02 +08:00
refactor(ActionCore): replace existing action with same UUID before putAction
This commit is contained in:
@@ -77,6 +77,7 @@ public class ActionCore extends PartnerCore<ActionCore> {
|
||||
|
||||
@CapabilityMethod
|
||||
public void putAction(@NonNull ActionData actionData) {
|
||||
actionPool.removeIf(data -> data.getUuid().equals(actionData.getUuid())); // 用来应对 ScheduledActionData 的重新排列
|
||||
actionPool.add(actionData);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user