From 937ea20d61f95396693549682fcbd4cd1480a959 Mon Sep 17 00:00:00 2001 From: ShrBox Date: Wed, 4 Sep 2024 22:23:23 +0800 Subject: [PATCH] chore: update CHANGELOG.md --- CHANGELOG.md | 9 ++++++++- manifest.json | 2 +- src/legacy/api/PlayerAPI.cpp | 2 +- tooth.json | 6 +++--- tooth.lua.json | 2 +- tooth.nodejs.json | 2 +- tooth.python.json | 2 +- tooth.quickjs.json | 2 +- 8 files changed, 17 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8929568..b9b1590 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.8.20] - 2024-08-04 + +### Fixed + +- Fix setGameMode + ## [0.8.19] - 2024-08-23 ### Changed @@ -590,7 +596,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [#157]: https://github.com/LiteLDev/LegacyScriptEngine/issues/157 [#160]: https://github.com/LiteLDev/LegacyScriptEngine/issues/160 -[Unreleased]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.8.19...HEAD +[Unreleased]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.8.20...HEAD +[0.8.20]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.8.19...v0.8.20 [0.8.19]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.8.18...v0.8.19 [0.8.18]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.8.17...v0.8.18 [0.8.17]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.8.16...v0.8.17 diff --git a/manifest.json b/manifest.json index b58e255..66106ca 100644 --- a/manifest.json +++ b/manifest.json @@ -4,7 +4,7 @@ "type": "native", "description": "A plugin engine for running LLSE plugins on LeviLamina", "author": "LiteLDev", - "version": "0.8.19", + "version": "0.8.20", "dependencies": [ { "name": "LegacyMoney" diff --git a/src/legacy/api/PlayerAPI.cpp b/src/legacy/api/PlayerAPI.cpp index 4b5c223..33ea001 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 >= 5 && newMode <= 6)) { + if ((newMode >= 0 && newMode <= 2) || (newMode >= 5 && newMode <= 6)) { player->setPlayerGameType((GameType)newMode); res = true; } diff --git a/tooth.json b/tooth.json index dcec00a..6bf3634 100644 --- a/tooth.json +++ b/tooth.json @@ -1,7 +1,7 @@ { "format_version": 2, "tooth": "github.com/LiteLDev/LegacyScriptEngine", - "version": "0.8.19", + "version": "0.8.20", "info": { "name": "LegacyScriptEngine", "description": "A plugin engine for running LLSE plugins on LeviLamina", @@ -12,7 +12,7 @@ ] }, "dependencies": { - "gitea.litebds.com/LiteLDev/legacy-script-engine-lua": "0.8.19", - "gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs": "0.8.19" + "gitea.litebds.com/LiteLDev/legacy-script-engine-lua": "0.8.20", + "gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs": "0.8.20" } } diff --git a/tooth.lua.json b/tooth.lua.json index 7ff2c75..748ede2 100644 --- a/tooth.lua.json +++ b/tooth.lua.json @@ -1,7 +1,7 @@ { "format_version": 2, "tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-lua", - "version": "0.8.19", + "version": "0.8.20", "info": { "name": "LegacyScriptEngine with Lua backend", "description": "A plugin engine for running LLSE plugins on LeviLamina", diff --git a/tooth.nodejs.json b/tooth.nodejs.json index 41a3edc..b4a8ea9 100644 --- a/tooth.nodejs.json +++ b/tooth.nodejs.json @@ -1,7 +1,7 @@ { "format_version": 2, "tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-nodejs", - "version": "0.8.19", + "version": "0.8.20", "info": { "name": "LegacyScriptEngine with NodeJs backend", "description": "A plugin engine for running LLSE plugins on LeviLamina", diff --git a/tooth.python.json b/tooth.python.json index 92c4b83..cdd37e4 100644 --- a/tooth.python.json +++ b/tooth.python.json @@ -1,7 +1,7 @@ { "format_version": 2, "tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-python", - "version": "0.8.19", + "version": "0.8.20", "info": { "name": "LegacyScriptEngine with Python backend", "description": "A plugin engine for running LLSE plugins on LeviLamina", diff --git a/tooth.quickjs.json b/tooth.quickjs.json index f2668b4..0460f98 100644 --- a/tooth.quickjs.json +++ b/tooth.quickjs.json @@ -1,7 +1,7 @@ { "format_version": 2, "tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs", - "version": "0.8.19", + "version": "0.8.20", "info": { "name": "LegacyScriptEngine with QuickJs backend", "description": "A plugin engine for running LLSE plugins on LeviLamina",