Skip verifier on initial load
This commit is contained in:
parent
0114eb5eb5
commit
9a9944160e
|
@ -1,5 +1,6 @@
|
||||||
package io.gitlab.jfronny.googlechat;
|
package io.gitlab.jfronny.googlechat;
|
||||||
|
|
||||||
|
import io.gitlab.jfronny.commons.serialize.gson.api.v1.Ignore;
|
||||||
import io.gitlab.jfronny.libjf.config.api.v1.*;
|
import io.gitlab.jfronny.libjf.config.api.v1.*;
|
||||||
import net.fabricmc.api.*;
|
import net.fabricmc.api.*;
|
||||||
import net.fabricmc.loader.api.*;
|
import net.fabricmc.loader.api.*;
|
||||||
|
@ -42,6 +43,7 @@ public class GoogleChatConfig {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Ignore private static boolean initial = true;
|
||||||
@Verifier
|
@Verifier
|
||||||
public static void verify() {
|
public static void verify() {
|
||||||
if (FabricLoader.getInstance().getEnvironmentType() == EnvType.SERVER && !clientLanguage.equals("auto")) {
|
if (FabricLoader.getInstance().getEnvironmentType() == EnvType.SERVER && !clientLanguage.equals("auto")) {
|
||||||
|
@ -49,7 +51,8 @@ public class GoogleChatConfig {
|
||||||
Your client language is not set to "auto" and you are using a server.
|
Your client language is not set to "auto" and you are using a server.
|
||||||
This setup is not recommended! Please set up GoogleChat according to its documentation!""");
|
This setup is not recommended! Please set up GoogleChat according to its documentation!""");
|
||||||
}
|
}
|
||||||
GoogleChatCache.onConfigChange();
|
if (!initial) GoogleChatCache.onConfigChange();
|
||||||
|
initial = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static {
|
static {
|
||||||
|
|
Loading…
Reference in New Issue