This repository was archived by the owner on Oct 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -463,6 +463,10 @@ void RegisterCommands() {
463463 GmodeCommand::setup (e.mCommandRegistry );
464464 CrashCommand::setup (e.mCommandRegistry );
465465 RunasCommand::setup (e.mCommandRegistry );
466+ // Enable ability command
467+ if (Settings::REG_ABILITY) {
468+ SymCall (" ?setup@AbilityCommand@@SAXAEAVCommandRegistry@@@Z" , void , void *)(e.mCommandRegistry );
469+ }
466470 return true ;
467471 });
468472 if (Settings::ENABLE_TPS)
Original file line number Diff line number Diff line change @@ -145,14 +145,7 @@ void entry() {
145145 logger.setFile (" logs/Helper.log" , true );
146146 logger.info (" Loaded version: {}" , LLHELPER_VERSION.toString ());
147147}
148- // enable ability
149- THook (void , " ?setup@ChangeSettingCommand@@SAXAEAVCommandRegistry@@@Z" ,
150- void * self) {
151- if (Settings::REG_ABILITY)
152- SymCall (" ?setup@AbilityCommand@@SAXAEAVCommandRegistry@@@Z" , void , void *)(self);
153- return original (self);
154- }
155- // setup custom name
148+ // Setup custom name
156149THook (string&, " ?getNameTag@Actor@@UEBAAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ" , void * x) {
157150 if (auto it = ORIG_NAME._map .find ((ServerPlayer*)x); it != ORIG_NAME._map .end ()) {
158151 return it->second ;
File renamed without changes.
You can’t perform that action at this time.
0 commit comments