dashboard volume fix

This commit is contained in:
ShadowLp174 committed 2026-05-18 20:05:29 +00:00
1 parent 2292a74274
commit 96d6c1ae13
2 files changed
+4 -3

No files matched your search

+3 -2
View File
@@ -281,8 +281,9 @@ export class Dashboard {
const authErr = this._authorizePlayerControl(user, player);
if (authErr) return { error: authErr };
const vol = Number(params.data.volume);
if (isNaN(vol) || vol < 0 || vol > 200) return { error: "Volume must be between 0 and 200" };
const msg = player.setVolume(vol / 100);
if (isNaN(vol) || vol < 0 || vol > 2) return {
error: "Volume must be between 0 and 2" };
const msg = player.setVolume(vol);
return { message: msg };
}