Skip to content

Commit f0b04ad

Browse files
committed
fix: fix enable on client
1 parent 320ce9e commit f0b04ad

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lse/Entry.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "legacy/main/EconomicSystem.h"
77
#include "ll/api/Config.h"
88
#include "ll/api/event/EventBus.h"
9-
#include "ll/api/event/command/CommandRegisterEvent.h"
9+
#include "ll/api/event/command/ServerCommandRegisterEvent.h"
1010
#include "ll/api/i18n/I18n.h"
1111
#include "ll/api/io/FileUtils.h"
1212
#include "ll/api/mod/ModManagerRegistry.h"
@@ -110,7 +110,7 @@ bool LegacyScriptEngine::load() {
110110
loadDebugEngine(getSelf());
111111

112112
using namespace ll::event;
113-
EventBus::getInstance().emplaceListener<CommandRegisterEvent>([](CommandRegisterEvent&) {
113+
EventBus::getInstance().emplaceListener<ServerCommandRegisterEvent>([](ServerCommandRegisterEvent&) {
114114
RegisterDebugCommand();
115115
});
116116
return true;

0 commit comments

Comments
 (0)