Skip to content

Commit 660ce2f

Browse files
committed
fix: fix playerInfo not launch #206
1 parent 5544aa8 commit 660ce2f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lse/Entry.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "ll/api/mod/NativeMod.h"
1414
#include "ll/api/utils/ErrorUtils.h"
1515
#include "ll/api/mod/RegisterHelper.h"
16+
#include "ll/api/service/PlayerInfo.h"
1617

1718
#include <ScriptX/ScriptX.h>
1819
#include <exception>
@@ -73,6 +74,7 @@ bool LegacyScriptEngine::enable() {
7374
if (!MoreGlobal::onEnable()) {
7475
logger.error("Failed to enable MoreGlobal"_tr());
7576
}
77+
ll::service::PlayerInfo::getInstance();
7678
#ifndef LEGACY_SCRIPT_ENGINE_BACKEND_NODEJS
7779
try {
7880
RegisterDebugCommand();

0 commit comments

Comments
 (0)