From 84b9b27da573a33d845642547a50510bf8a8a234 Mon Sep 17 00:00:00 2001 From: Lorenz Date: Sat, 6 Aug 2022 17:56:02 +0200 Subject: adding support for damage indicator outside dungeon --- src/main/java/at/hannibal2/skyhanni/items/HideNotClickableItems.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/items/HideNotClickableItems.kt') 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!" -- cgit