Disable fading detection on 1.21.6+ for now.

Might be worth revisiting once a proper fork of Immersive Portals appear for newer versions.
This commit is contained in:
Acuadragon100
2026-04-26 00:04:14 +02:00
parent 29042e2ced
commit 1617ebda9e
3 changed files with 8 additions and 2 deletions
@@ -40,6 +40,7 @@ public abstract class ImmersivePortalsAccessorCommon extends ImmersivePortalsAbs
return Minecraft.getInstance().level.entitiesForRendering();
}
#if MC_VER < MC_1_21_6
private static Matrix4f getProjectionMatrix() {
#if MC_VER > MC_1_16_5
return RenderSystem.getProjectionMatrix();
@@ -53,6 +54,7 @@ public abstract class ImmersivePortalsAccessorCommon extends ImmersivePortalsAbs
}
#endif
}
#endif
#if MC_VER <= MC_1_19_2
protected abstract Matrix4f convert(Mat4f matrix);
@@ -61,6 +63,7 @@ public abstract class ImmersivePortalsAccessorCommon extends ImmersivePortalsAbs
@Override
protected Supplier<?> getFrustumSupplier()
{
#if MC_VER < MC_1_21_6 // TODO Fix this for 1.21.6+ when a more modern version of Immersive Portals is available.
return Suppliers.memoize(() -> {
Frustum frustum = new Frustum(
#if MC_VER > MC_1_19_2
@@ -76,6 +79,9 @@ public abstract class ImmersivePortalsAccessorCommon extends ImmersivePortalsAbs
return frustum;
});
#else
return null;
#endif
}
}
+1 -1
View File
@@ -47,7 +47,7 @@ versionStr=
# This defines what MC version Intellij will use for the preprocessor
# and what version is used automatically by build and run commands
mcVer=1.21.1
mcVer=1.21.6
# Defines the maximum amount of memory Minecraft is allowed when run in a development environment
minecraftMemoryJavaArg=-Xmx6G