@hieuzest/koishi-plugin-mahjongpub 0.2.5 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +1 -1
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -451,7 +451,7 @@ var ContestManager = class {
451
451
  }
452
452
  const rowi = lastRecord ? lastRecord.rowi + 1 : 0;
453
453
  const round = Object.values(rounds).find((x) => x.round === contest.c_round && x.t_class === cls);
454
- const players = round.tids.map((tid) => teams[tid].players[Math.floor(rowi / 2)]);
454
+ const players = round.tids.map((tid) => teams[tid].players[Math.floor(rowi / 2)]).map((x) => x?.split("##", 1)[0]);
455
455
  if (!players.every((x) => x)) {
456
456
  this.extra[cid]?.broadcast(`[${tag}] 失败: 名单未填写`);
457
457
  return;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hieuzest/koishi-plugin-mahjongpub",
3
3
  "description": "Mahjong.pub API",
4
- "version": "0.2.5",
4
+ "version": "0.2.7",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
@@ -15,8 +15,8 @@
15
15
  "plugin"
16
16
  ],
17
17
  "peerDependencies": {
18
- "koishi": "^4.17.1",
19
- "@hieuzest/koishi-plugin-riichi-city": "^0.5.2"
18
+ "@hieuzest/koishi-plugin-riichi-city": "^0.5.2",
19
+ "koishi": "^4.17.1"
20
20
  },
21
21
  "dependencies": {
22
22
  "@hieuzest/cachetools": "^0.1.5"