check selfdm

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-09 23:00:50 +08:00
parent 9fbe824d6d
commit 5f77a8aa19
8 changed files with 71 additions and 9 deletions

View File

@@ -55,11 +55,12 @@ class PlDanmakuController {
if (mergeDanmaku) {
final count = counts[element.content];
if (count != 1) {
element.attr = count!;
} else {
element.clearAttr();
element.count = count!;
}
}
if (plPlayerController.isLogin) {
element.isSelf = element.midHash == plPlayerController.midHash;
}
int pos = element.progress ~/ 100; //每0.1秒存储一次
(dmSegMap[pos] ??= []).add(element);
}