make altcontrol not send ip over config
This commit is contained in:
parent
5df99b9b26
commit
cad628534d
1 changed files with 5 additions and 0 deletions
|
@ -49,9 +49,14 @@ public class AltControl extends Feature {
|
|||
|
||||
public void onConfig(RemoteConfigEvent event) {
|
||||
BaseBand.notify("[AltControl] Received a config.");
|
||||
|
||||
String ip = this.ip;
|
||||
boolean gui = BaseBand.isFeatureEnabled(ClickGUI.class);
|
||||
|
||||
BaseBand.INSTANCE.cloneConfigFrom(event.fatTCN);
|
||||
|
||||
BaseBand.ifFeaturePresent(ClickGUI.class, f -> f.setEnabled(gui));
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue