From 811a99b05ce5cd21c11537b221a5f4d18f19473f Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 19 Oct 2024 23:55:13 +0200 Subject: only show repo error popup when debug is enabled or in dev env --- src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt index 928a943b8..2fda980ea 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt @@ -21,6 +21,7 @@ import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.isRecombobulated import at.hannibal2.skyhanni.utils.StringUtils.removeColor import at.hannibal2.skyhanni.utils.StringUtils.removeResets import at.hannibal2.skyhanni.utils.repopatterns.RepoPattern +import at.hannibal2.skyhanni.utils.system.PlatformUtils import net.minecraft.client.Minecraft import net.minecraft.init.Items import net.minecraft.item.Item @@ -550,6 +551,7 @@ object ItemUtils { fun addMissingRepoItem(name: String, message: String) { if (!missingRepoItems.add(name)) return ChatUtils.debug(message) + if (!LorenzUtils.debug && !PlatformUtils.isDevEnvironment) return if (lastRepoWarning.passedSince() < 3.minutes) return lastRepoWarning = SimpleTimeMark.now() -- cgit