diff options
Diffstat (limited to 'src/main/java/at/lorenz/mod/ItemDisplayOverlayFeatures.kt')
-rw-r--r-- | src/main/java/at/lorenz/mod/ItemDisplayOverlayFeatures.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/lorenz/mod/ItemDisplayOverlayFeatures.kt b/src/main/java/at/lorenz/mod/ItemDisplayOverlayFeatures.kt index d542541ac..4c71449d9 100644 --- a/src/main/java/at/lorenz/mod/ItemDisplayOverlayFeatures.kt +++ b/src/main/java/at/lorenz/mod/ItemDisplayOverlayFeatures.kt @@ -75,7 +75,7 @@ class ItemDisplayOverlayFeatures { if (LorenzMod.feature.item.displayNewYearCakeNumber) { if (name.startsWith("New Year Cake")) { - return "§b" + name.split("(Year ", ")")[1] + return "§b" + name.between("(Year ", ")") } } |