fix: accesscontrol toast; feature: autocraft basic; reconstruct: autocraft

fix:
- accesscontrol send toast failed
- advanced peripherals BlockDetailData wrong record type
feature:
- autocraft support multi package craft
- autocraft more fast craft speed
reconstruct:
- CraftManager algorithm
- autocraft logic
This commit is contained in:
2025-10-26 20:19:49 +08:00
parent 119bc1997a
commit 2ab091d939
5 changed files with 369 additions and 148 deletions

View File

@@ -124,9 +124,9 @@ function sendNotice(player: string, playerInfo?: PlayerInfo) {
const noticeTargetPlayers = config.adminGroupConfig.groupUsers.concat(
config.usersGroups
.filter((value) => value.isNotice)
.map((value) => value.groupUsers ?? [])
.flat(),
.flatMap((value) => value.groupUsers ?? []),
);
logger.debug(`noticeTargetPlayers: ${noticeTargetPlayers.join(", ")}`);
for (const targetPlayer of noticeTargetPlayers) {
if (!onlinePlayers.includes(targetPlayer)) continue;
@@ -134,6 +134,7 @@ function sendNotice(player: string, playerInfo?: PlayerInfo) {
name: player,
info: playerInfo,
});
sleep(1);
}
releaser.release();
}