fix(module): allow NameProtect to be disabled (#38)
Drop the onDisable override that immediately re-enabled the module — left-clicking the entry in the ClickGui now actually turns it off. The constructor still defaults the module on, so the protection is opt-out rather than opt-in.
This commit is contained in:
@@ -20,11 +20,6 @@ extends Module {
|
||||
private String cachedRandomName = null;
|
||||
private final Random random = new Random();
|
||||
|
||||
@Override
|
||||
protected void onDisable() {
|
||||
this.setEnabled(true);
|
||||
}
|
||||
|
||||
public NameProtect() {
|
||||
super("NameProtect", Category.RENDER);
|
||||
this.setEnabled(true);
|
||||
|
||||
Reference in New Issue
Block a user