aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/items/HideNotClickableItems.kt
diff options
context:
space:
mode:
authorLorenz <lo.scherf@gmail.com>2022-08-06 17:56:02 +0200
committerLorenz <lo.scherf@gmail.com>2022-08-06 17:56:02 +0200
commit84b9b27da573a33d845642547a50510bf8a8a234 (patch)
treebb9baadd6324890e5cda1b01aac39a73d717116a /src/main/java/at/hannibal2/skyhanni/items/HideNotClickableItems.kt
parentc9b4b56db48e935f7c671d0fe0c9c4a0e3edcfdf (diff)
downloadskyhanni-84b9b27da573a33d845642547a50510bf8a8a234.tar.gz
skyhanni-84b9b27da573a33d845642547a50510bf8a8a234.tar.bz2
skyhanni-84b9b27da573a33d845642547a50510bf8a8a234.zip
adding support for damage indicator outside dungeon
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/items/HideNotClickableItems.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/items/HideNotClickableItems.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/items/HideNotClickableItems.kt b/src/main/java/at/hannibal2/skyhanni/items/HideNotClickableItems.kt
index a603ff39f..323fb2254 100644
--- a/src/main/java/at/hannibal2/skyhanni/items/HideNotClickableItems.kt
+++ b/src/main/java/at/hannibal2/skyhanni/items/HideNotClickableItems.kt
@@ -9,7 +9,7 @@ import at.hannibal2.skyhanni.utils.*
import at.hannibal2.skyhanni.utils.ItemUtils.cleanName
import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName
import at.hannibal2.skyhanni.utils.ItemUtils.getLore
-import at.hannibal2.skyhanni.utils.LorenzUtils.removeColorCodes
+import at.hannibal2.skyhanni.utils.LorenzUtils.removeColor
import com.google.gson.JsonObject
import net.minecraft.client.Minecraft
import net.minecraft.client.gui.inventory.GuiChest
@@ -100,7 +100,7 @@ class HideNotClickableItems {
if (hide(chestName, stack)) {
val first = event.toolTip[0]
event.toolTip.clear()
- event.toolTip.add("§7" + first.removeColorCodes())
+ event.toolTip.add("§7" + first.removeColor())
event.toolTip.add("")
if (hideReason == "") {
event.toolTip.add("§4No hide reason!")
@@ -232,7 +232,7 @@ class HideNotClickableItems {
return true
}
- if (stack.getLore().any { it.removeColorCodes() == "Fishing Bait" }) {
+ if (stack.getLore().any { it.removeColor() == "Fishing Bait" }) {
return false
}
hideReason = "This item is not a fishing bait!"