From a4d45ade7fdf9abfc349559ad81cc1be1c656511 Mon Sep 17 00:00:00 2001 From: ShrBox Date: Wed, 4 Sep 2024 22:15:17 +0800 Subject: [PATCH] fix: fix setGameMode --- src/legacy/api/PlayerAPI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/legacy/api/PlayerAPI.cpp b/src/legacy/api/PlayerAPI.cpp index e1c271f..4b5c223 100644 --- a/src/legacy/api/PlayerAPI.cpp +++ b/src/legacy/api/PlayerAPI.cpp @@ -1497,7 +1497,7 @@ Local PlayerClass::setGameMode(const Arguments& args) { bool res = false; int newMode = args[0].asNumber().toInt32(); - if ((newMode >= 0 && newMode <= 3) || newMode == 7) { + if ((newMode >= 0 && newMode <= 3) || (newMode >= 5 && newMode <= 6)) { player->setPlayerGameType((GameType)newMode); res = true; }