Skip to content

Commit d7c3480

Browse files
committed
Change locale provider to "SPI"
1 parent 2d1b7d2 commit d7c3480

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/org/mcphackers/launchwrapper/tweak/LegacyTweak.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public LaunchTarget getLaunchTarget() {
126126
enableWLToolkit();
127127
if (LaunchClassLoader.CLASS_VERSION >= 64) {
128128
// Minecraft shows unknown unicode symbol in place of U+00A0 (NON-BREAKING SPACE) in dates, force old locale provider to use space
129-
System.setProperty("java.locale.providers", "COMPAT");
129+
System.setProperty("java.locale.providers", "SPI");
130130
}
131131
MinecraftURLStreamHandler handler = new MinecraftURLStreamHandler(config);
132132
URLStreamHandlerProxy.setURLStreamHandler("http", handler);

src/main/java/org/mcphackers/launchwrapper/tweak/VanillaTweak.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public LaunchTarget getLaunchTarget() {
5858
if (LaunchClassLoader.CLASS_VERSION >= 64) {
5959
// Minecraft shows unknown unicode symbol in place of U+00A0 (NON-BREAKING SPACE) in dates, force old locale provider to use space
6060
// Fixed in 1.12.2??? Breaks in 1.14.4?? Works in 1.20 and above
61-
System.setProperty("java.locale.providers", "COMPAT");
61+
System.setProperty("java.locale.providers", "SPI");
6262
}
6363
MinecraftURLStreamHandler handler = new MinecraftURLStreamHandler(config);
6464
URLStreamHandlerProxy.setURLStreamHandler("http", handler);

0 commit comments

Comments
 (0)