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

Commit e5692c3

Browse files
committed
Added fix for Optifine support.
Optifine and ClientAPI pass duplicate launch arguments, causing a crash. This fixes the issue so that duplicate arguments may not be passed.
1 parent 8fc3d97 commit e5692c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/me/zero/client/load/ClientTweaker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ private void addArg(String label, File file) {
8585
}
8686

8787
private void addArg(String label, String value) {
88-
if (value != null) {
88+
if (!args.contains("--" + label) && value != null) {
8989
this.args.add("--" + label);
9090
this.args.add(value);
9191
}

0 commit comments

Comments
 (0)