From 356044445ffa9536a33632c2b04c5a72ec773ace Mon Sep 17 00:00:00 2001 From: Lilly Rose Berner Date: Thu, 18 Apr 2024 17:56:24 +0200 Subject: [PATCH] Fix disable update checks config not working for individual mods (#703) - Fixed disable_update_checker config option not working --- .../terraformersmc/modmenu/util/mod/fabric/FabricMod.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/terraformersmc/modmenu/util/mod/fabric/FabricMod.java b/src/main/java/com/terraformersmc/modmenu/util/mod/fabric/FabricMod.java index 506fbbc4..57acce9f 100644 --- a/src/main/java/com/terraformersmc/modmenu/util/mod/fabric/FabricMod.java +++ b/src/main/java/com/terraformersmc/modmenu/util/mod/fabric/FabricMod.java @@ -280,7 +280,11 @@ public boolean isReal() { @Override public boolean allowsUpdateChecks() { - return this.allowsUpdateChecks || ModMenuConfig.DISABLE_UPDATE_CHECKER.getValue().contains(this.getId()); + if (ModMenuConfig.DISABLE_UPDATE_CHECKER.getValue().contains(this.getId())) { + return false; + } + + return this.allowsUpdateChecks; } @Override