make altcontrol not send ip over config

This commit is contained in:
Daniella / Tove 2024-06-02 11:59:53 +02:00
parent 5df99b9b26
commit cad628534d
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -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