This commit is contained in:
NoLogicAlan committed 2026-09-04 02:47:44 +03:00
1 parent 6ba7b33a05
commit fe5f0e8d8c
4 files changed
+137 -24

No files matched your search

+10 -1
View File
@@ -230,7 +230,16 @@ async function forceRejoinPlayer(ctx, player) {
} catch (e) { logger.warn("[Debug] queue restore:", e?.message); }
}
if (wasAutoplay) newPlayer._autoplay = true;
if (wasAutoplay) {
newPlayer._autoplay = true;
newPlayer._autoplayHistory = player._autoplayHistory ?? [];
try {
const { attachAutoplay } = await import("./autoplay.mjs");
attachAutoplay(newPlayer, ctx);
} catch (e) {
logger.warn("[Debug] autoplay re-attach failed:", e?.message);
}
}
const newRoom = newPlayer.connection?.room;
return {