diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt | 3 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/LorenzColor.kt | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt index 196103e2d..d4c9b87a4 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt @@ -395,6 +395,9 @@ object ItemUtils { if (this == NEUInternalName.NONE) { error("NEUInternalName.NONE has no name!") } + if (NEUItems.ignoreItemsFilter.match(this.asString())) { + return "§cBugged Item" + } val itemStack = getItemStackOrNull() val name = itemStack?.name ?: error("Could not find item name for $this") diff --git a/src/main/java/at/hannibal2/skyhanni/utils/LorenzColor.kt b/src/main/java/at/hannibal2/skyhanni/utils/LorenzColor.kt index fdac1a4a8..717acf98d 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/LorenzColor.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/LorenzColor.kt @@ -38,6 +38,8 @@ enum class LorenzColor(private val chatColorCode: Char, private val color: Color override fun toString(): String = coloredLabel + fun toConfigColour(): String = "0:255:${color.red}:${color.green}:${color.blue}" + companion object { fun EnumDyeColor.toLorenzColor() = when (this) { |