aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-05-08 17:35:09 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-05-08 17:35:09 +0200
commit91e307ddf74559350bd6d6851b681c66f90d8d2a (patch)
tree157f5e41cc424970d67f1ea71d1d8f64738307fe /src/main/java/at/hannibal2/skyhanni
parentd15fcc9211ec24c1cf22e5bd935b713844cb126a (diff)
downloadskyhanni-91e307ddf74559350bd6d6851b681c66f90d8d2a.tar.gz
skyhanni-91e307ddf74559350bd6d6851b681c66f90d8d2a.tar.bz2
skyhanni-91e307ddf74559350bd6d6851b681c66f90d8d2a.zip
no more debug
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/mining/TunnelsMaps.kt13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/mining/TunnelsMaps.kt b/src/main/java/at/hannibal2/skyhanni/features/mining/TunnelsMaps.kt
index 39bf63de6..3fc091752 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/mining/TunnelsMaps.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/mining/TunnelsMaps.kt
@@ -144,28 +144,19 @@ class TunnelsMaps {
@SubscribeEvent
fun onInventoryFullyOpened(event: InventoryFullyOpenedEvent) {
- println("a")
if (!isEnabled()) return
- println("b")
clickTranslate = mapOf()
if (!commissionInvPattern.matches(event.inventoryName)) return
- println("c")
clickTranslate = event.inventoryItems.mapNotNull { (slotId, item) ->
- println("d")
val lore = item.getLore()
if (!glacitePattern.anyMatches(lore)) return@mapNotNull null
- println("e")
if (completedPattern.anyMatches(lore)) return@mapNotNull null
- println("f")
val type = lore.matchFirst(collectorCommissionPattern) {
group("what")
} ?: return@mapNotNull null
- println("g")
if (invalidGoalPattern.matches(type)) return@mapNotNull null
- println("h")
val mapName = getGenericName(type)
if (mapName.isEmpty()) {
- println("i")
ErrorManager.logErrorStateWithData(
"Unknown Collection Commission: $type", "$type can't be found in the graph.",
"type" to type,
@@ -174,15 +165,11 @@ class TunnelsMaps {
)
null
} else {
- println("j")
slotId to getGenericName(type)
}
}.toMap()
- println("k")
if (config.autoCommission) {
- println("l")
clickTranslate.values.firstOrNull()?.let {
- println("m")
setActiveAndGoal(it)
}
}