aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-26 13:15:21 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-26 13:15:21 +0100
commitd8c8b1c04b8f712af4cb4d2ee73cbd753f04f822 (patch)
tree70c4ed94a2ef4d1b8c80ce55cf491fdd6c77db0d /src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
parent9b2bd016410a30ffc370cc9990ff9244292380b9 (diff)
downloadskyhanni-d8c8b1c04b8f712af4cb4d2ee73cbd753f04f822.tar.gz
skyhanni-d8c8b1c04b8f712af4cb4d2ee73cbd753f04f822.tar.bz2
skyhanni-d8c8b1c04b8f712af4cb4d2ee73cbd753f04f822.zip
Moved matchRegex from LorenzUtils to StringUtils.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
index bd373d075..d8e21e46f 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
@@ -1,6 +1,6 @@
package at.hannibal2.skyhanni.utils
-import at.hannibal2.skyhanni.utils.LorenzUtils.matchRegex
+import at.hannibal2.skyhanni.utils.StringUtils.matchRegex
import at.hannibal2.skyhanni.utils.StringUtils.removeColor
import com.google.gson.GsonBuilder
import com.google.gson.JsonObject
@@ -14,7 +14,8 @@ object ItemUtils {
fun ItemStack.cleanName() = this.displayName.removeColor()
- fun isSack(name: String): Boolean = name.endsWith(" Sack")//TODO use item id or api or something? or dont, its working fine now
+ fun isSack(name: String): Boolean =
+ name.endsWith(" Sack")//TODO use item id or api or something? or dont, its working fine now
fun ItemStack.getLore(): List<String> {
val tagCompound = this.tagCompound ?: return emptyList()