From 7755f9d4bc5404b2e61dc5da8b6d390fadc93252 Mon Sep 17 00:00:00 2001 From: Lorenz Date: Mon, 22 Aug 2022 05:45:24 +0200 Subject: fix crash --- src/main/java/at/hannibal2/skyhanni/features/items/ItemStars.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2') diff --git a/src/main/java/at/hannibal2/skyhanni/features/items/ItemStars.kt b/src/main/java/at/hannibal2/skyhanni/features/items/ItemStars.kt index 0131801e2..224ababfe 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/items/ItemStars.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/items/ItemStars.kt @@ -134,11 +134,11 @@ class ItemStars { gold++ } while (name.contains("§c✪")) { - name = name.replaceFirst("§6✪", "") + name = name.replaceFirst("§c✪", "") red++ } while (name.contains("§d✪")) { - name = name.replaceFirst("§6✪", "") + name = name.replaceFirst("§d✪", "") red++ } -- cgit