Skip to content

Commit

Permalink
Debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
kappa-maintainer committed Apr 2, 2024
1 parent 165d4c7 commit 8f82b72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.2
- name: Set up JDK 8
uses: actions/setup-java@v3
uses: actions/setup-java@v4.2.1
with:
java-version: '8'
distribution: 'temurin'
- uses: gradle/gradle-build-action@v2.9.0
- uses: gradle/gradle-build-action@v3.1.0
with:
gradle-version: 8.7
name: Set up Gradle
Expand All @@ -35,6 +35,6 @@ jobs:
run: ./gradlew build

- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.2
uses: actions/upload-artifact@v4.3.1
with:
path: build/libs
9 changes: 3 additions & 6 deletions src/main/java/gkappa/wrapfix/mixin/MixinFontRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,10 @@ private void wrapStringToWidthICU4J(String str, int wrapWidth, CallbackInfoRetur
prevFormat = format.length();
lineWidth = getCharWidth(current);
} else {
if (chars[icui - 1] == '§') {
if (isFormatSpecial(chars[icui]) || isFormatColor(chars[icui])) {
icui++;
}
}
d = icui - fed;
list.add(line.substring(0, d + prevFormat));
String first = line.substring(0, d + prevFormat);
if (first.endsWith("§")) WrapFix.logger.info(line);
list.add(first);
temp = line.substring(d + prevFormat);
fed = icui;
line.delete(0, line.length()).append(formats[d]).append(temp);
Expand Down

0 comments on commit 8f82b72

Please sign in to comment.