Skip to content

Commit

Permalink
fix mod settings listener reg
Browse files Browse the repository at this point in the history
  • Loading branch information
p-marques committed Nov 25, 2022
1 parent 6646077 commit fc8ad65
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/r6/scripts/SDPPL/sdppl_menu.reds
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class SDPPLMenu extends SDPPLSettings {
public let PerkPointsOnSkillLevelUp: Int32 = 0;
protected func SetupSettings() -> Void {
ModSettings.RegisterListenerToClass(this);
SDPPL_RegisterMenu(this);
}
protected func GetIsEnabled() -> Bool {
Expand Down Expand Up @@ -67,4 +67,12 @@ public class SDPPLMenu extends SDPPLSettings {
protected func GetUseConditionalPointGain() -> Bool {
return false;
}
}

@if(!ModuleExists("ModSettingsModule"))
public func SDPPL_RegisterMenu(listener: ref<IScriptable>) {}

@if(ModuleExists("ModSettingsModule"))
public func SDPPL_RegisterMenu(listener: ref<IScriptable>) {
ModSettings.RegisterListenerToClass(listener);
}

0 comments on commit fc8ad65

Please sign in to comment.