aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-10-19 23:55:13 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-10-19 23:55:13 +0200
commit811a99b05ce5cd21c11537b221a5f4d18f19473f (patch)
treed8bac48b69a0f003f9c219c26457ea4a1da257a0
parente9a5ad9097266e2401841079989c43a268a197b9 (diff)
downloadSkyHanni-811a99b05ce5cd21c11537b221a5f4d18f19473f.tar.gz
SkyHanni-811a99b05ce5cd21c11537b221a5f4d18f19473f.tar.bz2
SkyHanni-811a99b05ce5cd21c11537b221a5f4d18f19473f.zip
only show repo error popup when debug is enabled or in dev env
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt2
1 files changed, 2 insertions, 0 deletions
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()