Skip to content

Commit

Permalink
fix wrong env
Browse files Browse the repository at this point in the history
  • Loading branch information
Tungstend committed Feb 8, 2025
1 parent fad05cc commit 122f230
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,13 @@ private static void addModLoaderEnv(FCLConfig config, HashMap<String, String> en
if (config.getInstalledModLoaders().isInstallNeoForge()) {
envMap.put("INST_NEOFORGE", "1");
}
if (config.getInstalledModLoaders().isInstallOptiFine()) {
if (config.getInstalledModLoaders().isInstallLiteLoader()) {
envMap.put("INST_LITELOADER", "1");
}
if (config.getInstalledModLoaders().isInstallLiteLoader()) {
if (config.getInstalledModLoaders().isInstallFabric()) {
envMap.put("INST_FABRIC", "1");
}
if (config.getInstalledModLoaders().isInstallFabric()) {
if (config.getInstalledModLoaders().isInstallOptiFine()) {
envMap.put("INST_OPTIFINE", "1");
}
if (config.getInstalledModLoaders().isInstallQuilt()) {
Expand Down Expand Up @@ -391,7 +391,7 @@ private static void setupGraphicAndSoundEngine(FCLConfig config, FCLBridge bridg
long handle = bridge.dlopen(RendererPlugin.getSelected().getPath() + "/" + RendererPlugin.getSelected().getGlName());
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.R) {
try {
Os.setenv("RENDERER_HANDLE",handle + "",true);
Os.setenv("RENDERER_HANDLE",handle + "", true);
} catch (ErrnoException ignore) {
}
}
Expand Down

0 comments on commit 122f230

Please sign in to comment.