Skip verifier on initial load
ci/woodpecker/push/jfmod Pipeline failed Details
ci/woodpecker/tag/jfmod Pipeline was successful Details

This commit is contained in:
Johannes Frohnmeyer 2023-03-18 10:06:49 +01:00
parent 0114eb5eb5
commit 9a9944160e
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,6 @@
package io.gitlab.jfronny.googlechat;
import io.gitlab.jfronny.commons.serialize.gson.api.v1.Ignore;
import io.gitlab.jfronny.libjf.config.api.v1.*;
import net.fabricmc.api.*;
import net.fabricmc.loader.api.*;
@ -42,6 +43,7 @@ public class GoogleChatConfig {
}
}
@Ignore private static boolean initial = true;
@Verifier
public static void verify() {
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.
This setup is not recommended! Please set up GoogleChat according to its documentation!""");
}
GoogleChatCache.onConfigChange();
if (!initial) GoogleChatCache.onConfigChange();
initial = false;
}
static {