summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/aizistral/nochatreports
diff options
context:
space:
mode:
authorMadis2022-08-01 19:33:35 +0300
committerMadis2022-08-01 19:33:35 +0300
commit6e8e743b17e547593d02ff6b80ae860ac27287fd (patch)
treef54bcaedc25d1e8b0cc4ecd5fa86a9537460e82e /src/main/java/com/aizistral/nochatreports
parent871ecb8e789a96fd8d21f069b8cf3003a4e51e73 (diff)
Different warning tooltip
Diffstat (limited to 'src/main/java/com/aizistral/nochatreports')
-rw-r--r--src/main/java/com/aizistral/nochatreports/core/ServerSafetyLevel.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/com/aizistral/nochatreports/core/ServerSafetyLevel.java b/src/main/java/com/aizistral/nochatreports/core/ServerSafetyLevel.java
index 141116d..2897c5a 100644
--- a/src/main/java/com/aizistral/nochatreports/core/ServerSafetyLevel.java
+++ b/src/main/java/com/aizistral/nochatreports/core/ServerSafetyLevel.java
@@ -47,6 +47,8 @@ public enum ServerSafetyLevel {
@Environment(EnvType.CLIENT)
public Component getTooltip() {
+ if(NoReportsConfig.whitelistAllServers() && this.equals(ServerSafetyLevel.INSECURE))
+ return Component.translatable("gui.nochatreports.status_insecure_whitelist_all_servers");
return Component.translatable("gui.nochatreports.status_" + this.name().toLowerCase());
}
}