aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/api
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-15 20:37:56 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-15 20:37:56 +0200
commite43d1b9e5debae6fb9b75134f3e708e8baa83ea1 (patch)
tree178ebd0d1b33430918e3788219464185b3d48305 /src/main/java/at/hannibal2/skyhanni/api
parentebdeedb91341e2c111dfac6b73860abf04839f67 (diff)
downloadskyhanni-e43d1b9e5debae6fb9b75134f3e708e8baa83ea1.tar.gz
skyhanni-e43d1b9e5debae6fb9b75134f3e708e8baa83ea1.tar.bz2
skyhanni-e43d1b9e5debae6fb9b75134f3e708e8baa83ea1.zip
Used distanceToPlayer
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/api')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/api/CollectionAPI.kt24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/api/CollectionAPI.kt b/src/main/java/at/hannibal2/skyhanni/api/CollectionAPI.kt
index f305d7aee..c2782a3c1 100644
--- a/src/main/java/at/hannibal2/skyhanni/api/CollectionAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/api/CollectionAPI.kt
@@ -17,16 +17,16 @@ class CollectionAPI {
private val counterPattern = Pattern.compile("(?:.*) §e(.*)§6\\/(?:.*)")
private val singleCounterPattern = Pattern.compile("§7Total Collected: §e(.*)")
- private val hypixelApiHasWrongItems = listOf(
- "WOOL",
- "CORRUPTED_FRAGMENT",
- "EGG",
- "POISONOUS_POTATO",
- "REDSTONE_BLOCK",
- "MUSHROOM_COLLECTION",
- "RAW_SOULFLOW",
- "GEMSTONE_COLLECTION",
- )
+// private val hypixelApiHasWrongItems = listOf(
+// "WOOL",
+// "CORRUPTED_FRAGMENT",
+// "EGG",
+// "POISONOUS_POTATO",
+// "REDSTONE_BLOCK",
+// "MUSHROOM_COLLECTION",
+// "RAW_SOULFLOW",
+// "GEMSTONE_COLLECTION",
+// )
@SubscribeEvent
fun onProfileDataLoad(event: ProfileApiDataLoadedEvent) {
@@ -38,10 +38,10 @@ class CollectionAPI {
val neuItemId = NEUItems.transHypixelNameToInternalName(hypixelId)
val itemName = BazaarApi.getBazaarDataByInternalName(neuItemId)?.displayName
// Hypixel moment
- if (hypixelApiHasWrongItems.contains(neuItemId)) continue
+// if (hypixelApiHasWrongItems.contains(neuItemId)) continue
if (itemName == null) {
- LorenzUtils.debug("collection name is null for '$neuItemId'")
+// LorenzUtils.debug("collection name is null for '$neuItemId'")
continue
}
collectionValue[neuItemId] = counter