summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/aizistral/nochatreports
diff options
context:
space:
mode:
authorAizistral2022-07-30 16:21:11 +0200
committerAizistral2022-07-30 16:21:11 +0200
commitdb53481db17d2d510cbd7a2b001e22f24ab7788b (patch)
treefe0cf4415060e4705f139e83facb9deb74dc3788 /src/main/java/com/aizistral/nochatreports
parent96231d6f9651dac0b4f0a5572d4ab7ee80bdebea (diff)
No initializers in my house
Fixes #120
Diffstat (limited to 'src/main/java/com/aizistral/nochatreports')
-rw-r--r--src/main/java/com/aizistral/nochatreports/mixins/client/MixinChatOptionsScreen.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/aizistral/nochatreports/mixins/client/MixinChatOptionsScreen.java b/src/main/java/com/aizistral/nochatreports/mixins/client/MixinChatOptionsScreen.java
index 263abc0..aecaaec 100644
--- a/src/main/java/com/aizistral/nochatreports/mixins/client/MixinChatOptionsScreen.java
+++ b/src/main/java/com/aizistral/nochatreports/mixins/client/MixinChatOptionsScreen.java
@@ -26,7 +26,7 @@ public class MixinChatOptionsScreen extends SimpleOptionsSubScreen {
* @author Kevinthegreat
*/
@SuppressWarnings({"JavaDoc", "JavadocReference"})
- private final List<FormattedCharSequence> secureChatTooltip = Minecraft.getInstance().font.split(Component.translatable("gui.nochatreport.secureChat"), 200);
+ private List<FormattedCharSequence> secureChatTooltip;
public MixinChatOptionsScreen(Screen screen, Options options, Component component, OptionInstance<?>[] optionInstances) {
super(screen, options, component, optionInstances);
@@ -41,7 +41,9 @@ public class MixinChatOptionsScreen extends SimpleOptionsSubScreen {
@Override
protected void init() {
super.init();
+ this.secureChatTooltip = Minecraft.getInstance().font.split(Component.translatable("gui.nochatreport.secureChat"), 200);
this.onlyShowSecureChat = this.list.findOption(Minecraft.getInstance().options.onlyShowSecureChat());
+
if (this.onlyShowSecureChat != null) {
this.onlyShowSecureChat.active = false;
}