aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorHiZe_ <superhize@hotmail.com>2023-08-13 21:04:42 +0200
committerGitHub <noreply@github.com>2023-08-13 21:04:42 +0200
commit89b4748fe31d0d92a49c773bb314bad3f939ad23 (patch)
tree65e7c84f5da8f0f3e9c765d80498112152d8b595 /src/main/java/at
parentde8413bad3c6fdf7ba3668b6ae1ef8979529f0b5 (diff)
downloadskyhanni-89b4748fe31d0d92a49c773bb314bad3f939ad23.tar.gz
skyhanni-89b4748fe31d0d92a49c773bb314bad3f939ad23.tar.bz2
skyhanni-89b4748fe31d0d92a49c773bb314bad3f939ad23.zip
Merge pull request #382
* Inventory name detection
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/ChestValue.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/ChestValue.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/ChestValue.kt
index b0228642b..c89c28136 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/ChestValue.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/ChestValue.kt
@@ -12,6 +12,7 @@ import at.hannibal2.skyhanni.utils.NEUItems.getItemStackOrNull
import at.hannibal2.skyhanni.utils.NumberUtil.addSeparators
import at.hannibal2.skyhanni.utils.RenderUtils.highlight
import at.hannibal2.skyhanni.utils.RenderUtils.renderStringsAndItems
+import at.hannibal2.skyhanni.utils.StringUtils.removeColor
import at.hannibal2.skyhanni.utils.renderables.Renderable
import net.minecraft.client.Minecraft
import net.minecraft.client.gui.inventory.GuiChest
@@ -26,7 +27,7 @@ class ChestValue {
private val config get() = SkyHanniMod.feature.inventory.chestValueConfig
private var display = emptyList<List<Any>>()
private val chestItems = mutableMapOf<NEUInternalName, Item>()
- private val inInventory get() = InventoryUtils.openInventoryName().isValidStorage()
+ private val inInventory get() = InventoryUtils.openInventoryName().removeColor().isValidStorage()
@SubscribeEvent
fun onBackgroundDraw(event: GuiRenderEvent.ChestBackgroundRenderEvent) {