Skip to content

Commit

Permalink
Double-check LWJGL install
Browse files Browse the repository at this point in the history
  • Loading branch information
The Judge committed Sep 22, 2024
1 parent 7439d08 commit e4175cc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/pojlib/API.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.google.gson.JsonObject;

import pojlib.account.MinecraftAccount;
import pojlib.util.Logger;
import pojlib.util.json.MinecraftInstances;
import pojlib.util.Constants;
import pojlib.account.LoginHelper;
Expand Down Expand Up @@ -176,6 +177,11 @@ public static void updateMods(MinecraftInstances instances, MinecraftInstances.I
* or {@link API#load(MinecraftInstances, String)}
*/
public static void launchInstance(Activity activity, MinecraftAccount account, MinecraftInstances.Instance instance) {
try {
UnityPlayerActivity.installLWJGL(activity);
} catch (IOException e) {
Logger.getInstance().appendToLog("WARN! LWJGL install failed, " + e);
}
InstanceHandler.launchInstance(activity, account, instance);
}

Expand Down

0 comments on commit e4175cc

Please sign in to comment.