Skip to content

Commit

Permalink
修正与 t88 加载顺序导致的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
TartaricAcid committed Nov 3, 2024
1 parent 85c8996 commit 941fd49
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,14 @@ public final class SodiumCompat {

private static boolean SODIUM_INSTALLED;
private static boolean EMBEDDIUM_INSTALLED;
private static RenderLevelStageEvent.Stage CUTOUT_RENDER_STAGE;

public static void init() {
SODIUM_INSTALLED = LoadingModList.get().getModFileById(SODIUM_ID) != null;
EMBEDDIUM_INSTALLED = LoadingModList.get().getModFileById(EMBEDDIUM_ID) != null;
CUTOUT_RENDER_STAGE = isInstalled() ? RenderLevelStageEvent.Stage.AFTER_CUTOUT_MIPPED_BLOCKS_BLOCKS : RenderLevelStageEvent.Stage.AFTER_PARTICLES;
}

public static RenderLevelStageEvent.Stage getCutoutRenderStage() {
return CUTOUT_RENDER_STAGE;
return isInstalled() ? RenderLevelStageEvent.Stage.AFTER_CUTOUT_MIPPED_BLOCKS_BLOCKS : RenderLevelStageEvent.Stage.AFTER_PARTICLES;
}

public static boolean isInstalled() {
Expand Down

0 comments on commit 941fd49

Please sign in to comment.