Skip to content
This repository was archived by the owner on Oct 29, 2019. It is now read-only.

Commit 93f1831

Browse files
committed
Automatically append '-Duser.country=US -Duser.language=en' to the JVM arguments to prevent Mixin locale error
1 parent b0bdfee commit 93f1831

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/cc/hyperium/installer/api/Installer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ public void install() {
320320
}
321321
prop.setProperty("name", "Hyperium 1.8.9");
322322
prop.setProperty("InstanceType", "OneSix");
323+
prop.setProperty("JvmArgs", "-Duser.country=US -Duser.language=en");
323324
prop.setProperty("MaxMemAlloc", String.valueOf(config.getWam() * 1024));
324325
prop.setProperty("MinMemAlloc", "512");
325326
prop.setProperty("iconKey", "hyperium");
@@ -469,7 +470,7 @@ public void install() {
469470
.put("created", instant.toString())
470471
.put("lastUsed", instant.toString())
471472
.put("lastVersionId", "Hyperium 1.8.9")
472-
.put("javaArgs", "-Xms512M -Xmx" + config.getWam() + "G")
473+
.put("javaArgs", "-Duser.country=US -Duser.language=en -Xms512M -Xmx" + config.getWam() + "G") // forces default locale to english so there's no locale problems with mixins
473474
.put("icon", InstallerUtils.ICON_BASE64);
474475
if (config.getLocalJre())
475476
if (System.getProperty("java.version").startsWith("1.8"))

0 commit comments

Comments
 (0)