diff --git a/mod/src/main/java/basemod/patches/com/megacrit/cardcrawl/cards/AbstractCard/CNCardTextColors.java b/mod/src/main/java/basemod/patches/com/megacrit/cardcrawl/cards/AbstractCard/CNCardTextColors.java index dad9fe98..4fcbacf1 100644 --- a/mod/src/main/java/basemod/patches/com/megacrit/cardcrawl/cards/AbstractCard/CNCardTextColors.java +++ b/mod/src/main/java/basemod/patches/com/megacrit/cardcrawl/cards/AbstractCard/CNCardTextColors.java @@ -43,7 +43,7 @@ public static void Insert(AbstractCard __instance, @ByRef String[] word, @ByRef if (!Settings.manualLineBreak) { // If the current line is reaching its end, then the ending punctuation's width should be ignored or it would result in // a new line with a single punctuation as the text - if( (letter == LocalizedStrings.PERIOD.charAt(0)) && ((currentWidth[0] + letterWidth) >= 0.8 * CN_DESC_BOX_WIDTH) ){ + if( (LocalizedStrings.PERIOD.length() != 0 && letter == LocalizedStrings.PERIOD.charAt(0)) && ((currentWidth[0] + letterWidth) >= 0.8 * CN_DESC_BOX_WIDTH) ){ letterWidth = 0F; } if((letter == ',') && ((currentWidth[0] + letterWidth) >= 0.8 * CN_DESC_BOX_WIDTH ) ){