From 00c65f54ede1c357865fff606f4dbd16382e8d42 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Mon, 16 Mar 2020 22:29:05 +0000 Subject: [PATCH] Fix https://github.com/FabricMC/fabric-example-mod/issues/44 --- src/main/java/net/fabricmc/loom/util/RunConfig.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/net/fabricmc/loom/util/RunConfig.java b/src/main/java/net/fabricmc/loom/util/RunConfig.java index 2b91170..633796d 100644 --- a/src/main/java/net/fabricmc/loom/util/RunConfig.java +++ b/src/main/java/net/fabricmc/loom/util/RunConfig.java @@ -232,8 +232,7 @@ public class RunConfig { char c = s.charAt(i); if (c == '@' && i > 0 && s.charAt(i - 1) == '@' || c == ' ') { - ret.append("@@"); - ret.append(Integer.toString(c, 16)); + ret.append(String.format("@@%04x", (int) c)); } else { ret.append(c); }