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

Commit

Permalink
fix collection hihglighting im dumb
Browse files Browse the repository at this point in the history
  • Loading branch information
btwonion committed May 31, 2024
1 parent 12733e0 commit c5f1c28
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion beta-changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
none

## Bug Fixes
none
- fix collection highlighting

## Technical changes
none
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ plugins {
signing
}

val beta: Int = 19
val beta: Int = 20
// Pattern is '1.0.0-beta1-1.20.6-pre.2'
val featureVersion = "1.0.0${if (beta != null) "-beta$beta" else ""}"
val mcVersion = property("mcVersion")!!.toString()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import dev.nyon.skylper.config.config
import dev.nyon.skylper.extensions.EventHandler.listenEvent
import dev.nyon.skylper.extensions.RenderItemBackgroundEvent
import dev.nyon.skylper.extensions.lore
import net.minecraft.world.item.Items

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

Expand Down

0 comments on commit c5f1c28

Please sign in to comment.