Skip to content

Commit

Permalink
Remove shiny from item names for chest profit
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry282 committed Jan 17, 2024
1 parent 9f26a83 commit 592db92
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ object ChestProfit {
val enchant = name.substring(name.indexOf("(") + 1, name.indexOf(")"))
return enchantNameToID(enchant)
} else {
val unformatted = name.stripControlCodes()
val unformatted = name.stripControlCodes().replace("Shiny ", "")
ItemFeatures.itemIdToNameLookup.entries.find {
it.value == unformatted && !it.value.contains("STARRED")
}?.key
Expand Down

0 comments on commit 592db92

Please sign in to comment.