From 470b71d853aebc3c6f3c4b641671694ee601f847 Mon Sep 17 00:00:00 2001 From: MODKILLER1001 Date: Mon, 1 Aug 2022 14:34:59 -0400 Subject: add convertToGameMessage for singleplayer LAN --- src/main/java/com/aizistral/nochatreports/ModMenuIntegration.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main/java/com/aizistral') diff --git a/src/main/java/com/aizistral/nochatreports/ModMenuIntegration.java b/src/main/java/com/aizistral/nochatreports/ModMenuIntegration.java index 3d96813..2e0e073 100644 --- a/src/main/java/com/aizistral/nochatreports/ModMenuIntegration.java +++ b/src/main/java/com/aizistral/nochatreports/ModMenuIntegration.java @@ -42,6 +42,13 @@ public class ModMenuIntegration implements ModMenuApi { .setTooltip(Component.translatable("option.NoChatReports.enableDebugLog.tooltip")) .setSaveConsumer(newValue -> NoReportsConfig.getInstance().enableDebugLog = newValue) .build()); + + // Set an option for convertToGameMessage + general.addEntry(entryBuilder.startBooleanToggle(Component.translatable("option.NoChatReports.convertToGameMessage"), NoReportsConfig.getInstance().convertToGameMessage) + .setDefaultValue(false) + .setTooltip(Component.translatable("option.NoChatReports.convertToGameMessage.tooltip")) + .setSaveConsumer(newValue -> NoReportsConfig.getInstance().convertToGameMessage = newValue) + .build()); // Set an option for showServerSafety general.addEntry(entryBuilder.startBooleanToggle(Component.translatable("option.NoChatReports.showServerSafety"), NoReportsConfig.getInstance().showServerSafety) -- cgit v1.2.3