Add a delay for disabling mods in bulk
This commit is contained in:
parent
b2a7493539
commit
3b7876532b
10 changed files with 57 additions and 39 deletions
|
@ -85,11 +85,13 @@ class Settings {
|
|||
FTS = NbtUtils.readBoolean(tag, "fts"); // First Time Setup.
|
||||
// FTS should be disabled by the client when sending it back to the server in a C2SApplySettingsPacket
|
||||
|
||||
if (tag.containsKey("superuser"))
|
||||
if (tag.containsKey("superuser")) {
|
||||
superuser = User.deserialize(tag.get("superuser")!.asCompoundTag());
|
||||
}
|
||||
|
||||
if (tag.containsKey("wine_init"))
|
||||
if (tag.containsKey("wine_init")) {
|
||||
wineInitialized = NbtUtils.readBoolean(tag, "wine_init");
|
||||
}
|
||||
|
||||
if (tag.containsKey("main")) {
|
||||
inst = SettingsEntry.deserialize(tag.get("main")!.asCompoundTag());
|
||||
|
@ -105,11 +107,13 @@ class Settings {
|
|||
|
||||
inst = SettingsEntry.deserialize(tag.get("entry") as CompoundTag);
|
||||
|
||||
if (tag.containsKey("wine_init"))
|
||||
if (tag.containsKey("wine_init")) {
|
||||
wineInitialized = NbtUtils.readBoolean(tag, "wine_init");
|
||||
}
|
||||
|
||||
if (tag.containsKey("superuser"))
|
||||
if (tag.containsKey("superuser")) {
|
||||
superuser = User.deserialize(tag.get("superuser")!.asCompoundTag());
|
||||
}
|
||||
|
||||
FTS = NbtUtils.readBoolean(tag, "fts");
|
||||
} catch (E) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue