From 5b0037afabe4e83d9b870db30ff780c1bd0c6032 Mon Sep 17 00:00:00 2001 From: Waiting Idly <25394029+WaitingIdly@users.noreply.github.com> Date: Fri, 20 Dec 2024 10:09:15 -0800 Subject: [PATCH] remove unneeded reset --- .../acgaming/universaltweaks/config/UTConfigGeneral.java | 2 +- .../universaltweaks/util/compat/UTObsoleteModsHandler.java | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/main/java/mod/acgaming/universaltweaks/config/UTConfigGeneral.java b/src/main/java/mod/acgaming/universaltweaks/config/UTConfigGeneral.java index 43f1b538..8b44d14e 100644 --- a/src/main/java/mod/acgaming/universaltweaks/config/UTConfigGeneral.java +++ b/src/main/java/mod/acgaming/universaltweaks/config/UTConfigGeneral.java @@ -46,7 +46,7 @@ public static void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent event if (event.getModID().equals(UniversalTweaks.MODID)) { ConfigManager.sync(UniversalTweaks.MODID, Config.Type.INSTANCE); - UTObsoleteModsHandler.resetObsoleteMods(); + UTObsoleteModsHandler.setHasShownObsoleteMods(false); } } } diff --git a/src/main/java/mod/acgaming/universaltweaks/util/compat/UTObsoleteModsHandler.java b/src/main/java/mod/acgaming/universaltweaks/util/compat/UTObsoleteModsHandler.java index 299e2980..8f732f66 100644 --- a/src/main/java/mod/acgaming/universaltweaks/util/compat/UTObsoleteModsHandler.java +++ b/src/main/java/mod/acgaming/universaltweaks/util/compat/UTObsoleteModsHandler.java @@ -197,11 +197,4 @@ public static void setHasShownObsoleteMods(boolean value) { hasShownObsoleteMods = value; } - - public static void resetObsoleteMods() - { - hasShownObsoleteMods = false; - obsoleteModsList = null; - } - } \ No newline at end of file