Skip to content
This repository was archived by the owner on Nov 27, 2024. It is now read-only.

Commit c5f1c28

Browse files
committed
fix collection hihglighting im dumb
1 parent 12733e0 commit c5f1c28

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

beta-changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
none
33

44
## Bug Fixes
5-
none
5+
- fix collection highlighting
66

77
## Technical changes
88
none

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ plugins {
1414
signing
1515
}
1616

17-
val beta: Int = 19
17+
val beta: Int = 20
1818
// Pattern is '1.0.0-beta1-1.20.6-pre.2'
1919
val featureVersion = "1.0.0${if (beta != null) "-beta$beta" else ""}"
2020
val mcVersion = property("mcVersion")!!.toString()

src/main/kotlin/dev/nyon/skylper/skyblock/menu/collections/CompletionHighlighter.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import dev.nyon.skylper.config.config
44
import dev.nyon.skylper.extensions.EventHandler.listenEvent
55
import dev.nyon.skylper.extensions.RenderItemBackgroundEvent
66
import dev.nyon.skylper.extensions.lore
7-
import net.minecraft.world.item.Items
87

98
object CompletionHighlighter {
109
@Suppress("unused")
@@ -13,8 +12,8 @@ object CompletionHighlighter {
1312
val screenName = title.string
1413
if (screenName.contains("Collections")) {
1514
val lore = slot.item.lore.map { it.string }
16-
if (lore.none { it.contains("Click to view!") } || slot.item.`is`(Items.PLAYER_HEAD)) return@listenEvent null
17-
if (lore.any { it.contains("Collections Maxed Out: 100%") }) return@listenEvent null
15+
if (lore.none { it.contains("Click to view!") } || slot.item.displayName.string.contains("Crafted Minions")) return@listenEvent null
16+
if (lore.any { it.contains("Collections Maxed Out") }) return@listenEvent null
1817
return@listenEvent config.menu.collections.nonCompletedCollectionHighlightColor.rgb
1918
}
2019

0 commit comments

Comments
 (0)