Check fade rendering even without Sodium, because it can still happen without Sodium in some cases.

This commit is contained in:
Acuadragon100
2026-04-26 11:19:30 +02:00
parent dcb049d4c2
commit c363b7fe4b
@@ -610,8 +610,7 @@ public class ClientApi
// When immersive portals and sodium are combined the fade renders on top of the portal, so turn it off when a portal is on-screen.
IImmersivePortalsAccessor immersivePortals = ModAccessorInjector.INSTANCE.get(IImmersivePortalsAccessor.class);
boolean hasSodium = SingletonInjector.INSTANCE.get(IModChecker.class).isModLoaded("sodium") || SingletonInjector.INSTANCE.get(IModChecker.class).isModLoaded("rubidium") || SingletonInjector.INSTANCE.get(IModChecker.class).isModLoaded("embeddium");
if (hasSodium && immersivePortals != null && immersivePortals.wasPortalRecentlyVisible()) {
if (immersivePortals != null && immersivePortals.wasPortalRecentlyVisible()) {
return false;
}
return true;