make PlayerDB transfer over AltControl when sending config

This commit is contained in:
Daniella / Tove 2024-06-02 14:58:27 +02:00
parent b9fbfcd3a5
commit 2d93189964
Signed by: TudbuT
GPG key ID: B3CF345217F202D3
2 changed files with 3 additions and 1 deletions

View file

@ -9,6 +9,7 @@ import com.baseband.client.feature.Feature;
import com.baseband.client.feature.client.Client;
import com.baseband.client.feature.render.HUD;
import com.baseband.client.registry.ConfigHandle;
import com.baseband.client.registry.PlayerDB;
import com.baseband.client.registry.Updater;
import com.baseband.client.util.interact.ChatUtil;
import com.baseband.client.util.misc.GlobalUtil;
@ -57,6 +58,7 @@ public class BaseBand {
features[i].toggle();
}
}
PlayerDB.Data.cloneFrom(fullDB.getSub("PlayerData"));
}
public static Updater registerUpdater(Updater updater) {

View file

@ -38,7 +38,7 @@ public class PlayerDB {
0x000000,
(Supplier<?>) TCNArray::new,
};
private static final ConfigHandle Data;
public static final ConfigHandle Data;
static {
try {