File tree 2 files changed +15
-6
lines changed
2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
10
10
## [ 0.10.1] - 2025-03-16
11
11
12
+ ### Changed
13
+
14
+ - Synced [ ScriptX] ( https://github.com/LiteLDev/ScriptX ) with upstream
15
+ - Delay onServerStarted for 1 tick to fix compatibility with old plugins(e.g. LLSE-FakePlayer)
16
+ - Show error when loading plugins failed [ #240 ] @xiaoqch
17
+
12
18
### Fixed
13
19
14
20
- Fixed DefaultDataLoadHelper
@@ -793,6 +799,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
793
799
[ #227 ] : https://github.com/LiteLDev/LegacyScriptEngine/issues/227
794
800
[ #231 ] : https://github.com/LiteLDev/LegacyScriptEngine/issues/231
795
801
[ #236 ] : https://github.com/LiteLDev/LegacyScriptEngine/issues/236
802
+ [ #240 ] : https://github.com/LiteLDev/LegacyScriptEngine/issues/240
796
803
[ #243 ] : https://github.com/LiteLDev/LegacyScriptEngine/issues/243
797
804
[ #249 ] : https://github.com/LiteLDev/LegacyScriptEngine/issues/249
798
805
[ #251 ] : https://github.com/LiteLDev/LegacyScriptEngine/issues/251
Original file line number Diff line number Diff line change @@ -849,12 +849,16 @@ void InitBasicEventListeners() {
849
849
}
850
850
});
851
851
852
+ using namespace ll ::chrono_literals;
852
853
// ===== onServerStarted =====
853
854
bus.emplaceListener <ServerStartedEvent>([](ServerStartedEvent&) {
854
- IF_LISTENED (EVENT_TYPES::onServerStarted) {
855
- CallEvent (EVENT_TYPES::onServerStarted); // Not cancellable
856
- }
857
- IF_LISTENED_END (EVENT_TYPES::onServerStarted);
855
+ ll::coro::keepThis ([]() -> ll::coro::CoroTask<> {
856
+ co_await 1_tick;
857
+ IF_LISTENED (EVENT_TYPES::onServerStarted) {
858
+ CallEvent (EVENT_TYPES::onServerStarted); // Not cancellable
859
+ }
860
+ IF_LISTENED_END (EVENT_TYPES::onServerStarted);
861
+ }).launch (ll::thread::ServerThreadExecutor::getDefault ());
858
862
859
863
isCmdRegisterEnabled = true ;
860
864
@@ -863,8 +867,6 @@ void InitBasicEventListeners() {
863
867
864
868
// 植入tick
865
869
ll::coro::keepThis ([]() -> ll::coro::CoroTask<> {
866
- using namespace ll ::chrono_literals;
867
-
868
870
while (true ) {
869
871
co_await 1_tick;
870
872
You can’t perform that action at this time.
0 commit comments