This repository was archived by the owner on Nov 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
src/main/kotlin/dev/nyon/skylper/skyblock/menu/collections Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 2
2
none
3
3
4
4
## Bug Fixes
5
- none
5
+ - fix collection highlighting
6
6
7
7
## Technical changes
8
8
none
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ plugins {
14
14
signing
15
15
}
16
16
17
- val beta: Int = 19
17
+ val beta: Int = 20
18
18
// Pattern is '1.0.0-beta1-1.20.6-pre.2'
19
19
val featureVersion = " 1.0.0${if (beta != null ) " -beta$beta " else " " } "
20
20
val mcVersion = property(" mcVersion" )!! .toString()
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import dev.nyon.skylper.config.config
4
4
import dev.nyon.skylper.extensions.EventHandler.listenEvent
5
5
import dev.nyon.skylper.extensions.RenderItemBackgroundEvent
6
6
import dev.nyon.skylper.extensions.lore
7
- import net.minecraft.world.item.Items
8
7
9
8
object CompletionHighlighter {
10
9
@Suppress(" unused" )
@@ -13,8 +12,8 @@ object CompletionHighlighter {
13
12
val screenName = title.string
14
13
if (screenName.contains(" Collections" )) {
15
14
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
18
17
return @listenEvent config.menu.collections.nonCompletedCollectionHighlightColor.rgb
19
18
}
20
19
You can’t perform that action at this time.
0 commit comments