From b53798bd0b1086300044f67867327ffeb8be4635 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Sun, 17 Mar 2024 22:25:30 -0600 Subject: [PATCH 1/2] copypaste moment (fixes GH-3) --- src/main/java/pm/c7/scout/config/ScoutConfig.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/java/pm/c7/scout/config/ScoutConfig.java b/src/main/java/pm/c7/scout/config/ScoutConfig.java index b5a3c85..e8d9b08 100644 --- a/src/main/java/pm/c7/scout/config/ScoutConfig.java +++ b/src/main/java/pm/c7/scout/config/ScoutConfig.java @@ -18,9 +18,6 @@ import com.google.common.collect.Sets; import joptsimple.internal.Strings; import net.fabricmc.loader.api.FabricLoader; -import net.minecraft.client.font.TextHandler; -import net.minecraft.text.StringVisitable; -import net.minecraft.text.Style; import pm.c7.scout.ScoutUtil; @@ -102,7 +99,6 @@ public class ScoutConfig { public static String getSavedConfig() { Map> unparsed = Maps.newLinkedHashMap(); - TextHandler wrapper = new TextHandler((point, style) -> 1); for (Field field : ScoutConfig.class.getFields()) { ConfigValue annot = field.getAnnotation(ConfigValue.class); if (annot != null) { @@ -113,9 +109,10 @@ public class ScoutConfig { String commentText = ""; if (comment != null) { commentText += "\t/**\n"; - for (StringVisitable line : wrapper.wrapLines(comment.value(), 80, Style.EMPTY)) { + var lines = comment.value().split("\\n"); + for (String line : lines) { commentText += "\t * "; - commentText += line.getString(); + commentText += line; commentText += "\n"; } commentText += "\t */\n"; From e323de2d574f38c7e53e61ba1450404fd0ddfb0d Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Sun, 17 Mar 2024 22:25:46 -0600 Subject: [PATCH 2/2] Bump version --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index b658ebb..c1d76e1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ org.gradle.jvmargs = -Xmx4G org.gradle.parallel = true # Mod Properties -version = 2.0.1 +version = 2.0.2 maven_group = pm.c7.scout archives_base_name = Scout