Compare commits
No commits in common. "e323de2d574f38c7e53e61ba1450404fd0ddfb0d" and "d3326e6f18e71027ca1f91ea035b808feb98e8f1" have entirely different histories.
e323de2d57
...
d3326e6f18
|
@ -3,7 +3,7 @@ org.gradle.jvmargs = -Xmx4G
|
||||||
org.gradle.parallel = true
|
org.gradle.parallel = true
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
version = 2.0.2
|
version = 2.0.1
|
||||||
maven_group = pm.c7.scout
|
maven_group = pm.c7.scout
|
||||||
archives_base_name = Scout
|
archives_base_name = Scout
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,9 @@ import com.google.common.collect.Sets;
|
||||||
import joptsimple.internal.Strings;
|
import joptsimple.internal.Strings;
|
||||||
|
|
||||||
import net.fabricmc.loader.api.FabricLoader;
|
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;
|
import pm.c7.scout.ScoutUtil;
|
||||||
|
|
||||||
|
@ -99,6 +102,7 @@ public class ScoutConfig {
|
||||||
|
|
||||||
public static String getSavedConfig() {
|
public static String getSavedConfig() {
|
||||||
Map<String, List<String>> unparsed = Maps.newLinkedHashMap();
|
Map<String, List<String>> unparsed = Maps.newLinkedHashMap();
|
||||||
|
TextHandler wrapper = new TextHandler((point, style) -> 1);
|
||||||
for (Field field : ScoutConfig.class.getFields()) {
|
for (Field field : ScoutConfig.class.getFields()) {
|
||||||
ConfigValue annot = field.getAnnotation(ConfigValue.class);
|
ConfigValue annot = field.getAnnotation(ConfigValue.class);
|
||||||
if (annot != null) {
|
if (annot != null) {
|
||||||
|
@ -109,10 +113,9 @@ public class ScoutConfig {
|
||||||
String commentText = "";
|
String commentText = "";
|
||||||
if (comment != null) {
|
if (comment != null) {
|
||||||
commentText += "\t/**\n";
|
commentText += "\t/**\n";
|
||||||
var lines = comment.value().split("\\n");
|
for (StringVisitable line : wrapper.wrapLines(comment.value(), 80, Style.EMPTY)) {
|
||||||
for (String line : lines) {
|
|
||||||
commentText += "\t * ";
|
commentText += "\t * ";
|
||||||
commentText += line;
|
commentText += line.getString();
|
||||||
commentText += "\n";
|
commentText += "\n";
|
||||||
}
|
}
|
||||||
commentText += "\t */\n";
|
commentText += "\t */\n";
|
||||||
|
|
Loading…
Reference in New Issue