aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/items/ItemDisplayOverlayFeatures.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/items/ItemDisplayOverlayFeatures.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/items/ItemDisplayOverlayFeatures.kt11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/items/ItemDisplayOverlayFeatures.kt b/src/main/java/at/hannibal2/skyhanni/items/ItemDisplayOverlayFeatures.kt
index d810aece5..d5054ae47 100644
--- a/src/main/java/at/hannibal2/skyhanni/items/ItemDisplayOverlayFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/items/ItemDisplayOverlayFeatures.kt
@@ -89,6 +89,8 @@ class ItemDisplayOverlayFeatures {
if (SkyHanniMod.feature.items.displaySackName) {
if (ItemUtils.isSack(name)) {
+ //TODO fix this and replace other
+// val sackName = grabSackName(name)
val split = name.split(" ")
val sackName = split[split.size - 2]
return (if (name.contains("Enchanted")) "ยง5" else "") + sackName.substring(0, 2)
@@ -107,4 +109,13 @@ class ItemDisplayOverlayFeatures {
return ""
}
+
+// private fun grabSackName(name: String): String {
+// val split = name.split(" ")
+// val text = split[0]
+// for (line in arrayOf("Large", "Medium", "Small", "Enchanted")) {
+// if (text == line) return grabSackName(name.substring(text.length + 1))
+// }
+// return text
+// }
} \ No newline at end of file