funbox fix, version up

This commit is contained in:
Miodec 2021-01-21 17:04:54 +00:00
parent d833a14b3c
commit e7e0adc6ac
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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) {