From 9f83ec74f343a76753fcb0fef3aa11c245d00dd5 Mon Sep 17 00:00:00 2001 From: arcade_kappa Date: Tue, 2 Apr 2024 11:46:22 +0800 Subject: [PATCH] Update gradle --- gradle/wrapper/gradle-wrapper.properties | 2 +- src/main/java/gkappa/wrapfix/mixin/MixinFontRenderer.java | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 11fce01..4518132 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip diff --git a/src/main/java/gkappa/wrapfix/mixin/MixinFontRenderer.java b/src/main/java/gkappa/wrapfix/mixin/MixinFontRenderer.java index 568415d..ec6900e 100644 --- a/src/main/java/gkappa/wrapfix/mixin/MixinFontRenderer.java +++ b/src/main/java/gkappa/wrapfix/mixin/MixinFontRenderer.java @@ -114,6 +114,11 @@ private void wrapStringToWidthICU4J(String str, int wrapWidth, CallbackInfoRetur prevFormat = format.length(); lineWidth = getCharWidth(current); } else { + if (chars[icui] == 'ยง') { + if (isFormatSpecial(chars[icui + 1]) || isFormatColor(chars[icui + 1])) { + icui++; + } + } d = icui - fed; list.add(line.substring(0, d + prevFormat)); temp = line.substring(d + prevFormat);