From 53fdff4619ee49593875be3288adb71890a784ea Mon Sep 17 00:00:00 2001 From: arcade_kappa Date: Tue, 2 Apr 2024 15:18:58 +0800 Subject: [PATCH] Debug in dumb way --- src/main/java/gkappa/wrapfix/mixin/MixinFontRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/gkappa/wrapfix/mixin/MixinFontRenderer.java b/src/main/java/gkappa/wrapfix/mixin/MixinFontRenderer.java index db6edd0..ac08485 100644 --- a/src/main/java/gkappa/wrapfix/mixin/MixinFontRenderer.java +++ b/src/main/java/gkappa/wrapfix/mixin/MixinFontRenderer.java @@ -115,7 +115,7 @@ private void wrapStringToWidthICU4J(String str, int wrapWidth, CallbackInfoRetur lineWidth = getCharWidth(current); } else { d = icui - fed; - if (line.charAt(d + prevFormat) == '§') WrapFix.logger.info("{} {} {}", line, d + prevFormat, list); + if (line.charAt(d + prevFormat - 1) == '§') WrapFix.logger.info("{} {} {}", line, d + prevFormat, list.toString()); list.add(line.substring(0, d + prevFormat)); temp = line.substring(d + prevFormat); fed = icui;