Skip to content

Commit

Permalink
fix: fix some commands crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Dofes committed Jan 11, 2025
1 parent 47f478e commit 01e5aaf
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/ll/core/command/BuiltinCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,21 @@


namespace ll::command {
LL_TYPE_INSTANCE_HOOK(
LL_TYPE_STATIC_HOOK(
RegisterBuiltinCommands,
ll::memory::HookPriority::Highest,
DedicatedServerCommands,
&DedicatedServerCommands::setupStandaloneServer,
void,
::ServerInstance& ins
::Bedrock::NotNullNonOwnerPtr<::Minecraft> const& minecraft,
::IMinecraftApp& app,
::Level& level,
::LevelStorage& levelStorage,
::DedicatedServer& dedicatedServer,
::AllowListFile& allowListFile,
::ScriptSettings* scriptSettings
) {
origin(ins);
origin(minecraft, app, level, levelStorage, dedicatedServer, allowListFile, scriptSettings);
registerTpdimCommand();
registerVersionCommand();
registerMemstatsCommand();
Expand Down

0 comments on commit 01e5aaf

Please sign in to comment.