From e7e0adc6ac08e32729425321b5a9764ae559c5fd Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 21 Jan 2021 17:04:54 +0000 Subject: [PATCH] funbox fix, version up --- src/js/script.js | 2 +- src/js/tribe.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/script.js b/src/js/script.js index 7991765d9..ee6b8fe77 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -313,7 +313,7 @@ async function activateFunbox(funbox, mode, mp = false) { if (!mp_checkIfCanChangeConfig(mp)) { return; } - if (testActive || resultVisible) { + if (testActive || (resultVisible && MP.state < 10)) { Notifications.add( "You can only change the funbox before starting a test.", 0 diff --git a/src/js/tribe.js b/src/js/tribe.js index 47828a3d9..c70eae269 100644 --- a/src/js/tribe.js +++ b/src/js/tribe.js @@ -15,7 +15,7 @@ let MP = { maxReconnectionAttempts: 1, activePage: "preloader", pageTransition: false, - expectedVersion: "0.5.0", + expectedVersion: "0.5.1", }; let tribeSounds = { @@ -141,7 +141,7 @@ function mp_applyRoomConfig(cfg) { function mp_checkIfCanChangeConfig(mp) { if (MP.state >= 10) { - if (MP.state >= 20) { + if (MP.state >= 20 && MP.state < 29) { Notifications.add("You can't change settings during the test", 0); return false; } else if (MP.room.isLeader) {