Skip to content

Commit

Permalink
fix: fix playerInfo not launch #206
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Jan 12, 2025
1 parent 5544aa8 commit 660ce2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lse/Entry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "ll/api/mod/NativeMod.h"
#include "ll/api/utils/ErrorUtils.h"
#include "ll/api/mod/RegisterHelper.h"
#include "ll/api/service/PlayerInfo.h"

#include <ScriptX/ScriptX.h>
#include <exception>
Expand Down Expand Up @@ -73,6 +74,7 @@ bool LegacyScriptEngine::enable() {
if (!MoreGlobal::onEnable()) {
logger.error("Failed to enable MoreGlobal"_tr());
}
ll::service::PlayerInfo::getInstance();
#ifndef LEGACY_SCRIPT_ENGINE_BACKEND_NODEJS
try {
RegisterDebugCommand();
Expand Down

0 comments on commit 660ce2f

Please sign in to comment.