Skip to content

Commit

Permalink
Fix incorrect box culling
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS212 committed Aug 2, 2023
1 parent 44ea376 commit c1f5e81
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public class SodiumVersionCheck {
// of pain. So don't forget!
private static final ImmutableList<AllowedSodiumVersion> ALLOWED_SODIUM_VERSIONS = ImmutableList.of(
// Dev version
AllowedSodiumVersion.exact("0.4.10+build.27",
"https://modrinth.com/mod/sodium/version/mc1.20-0.4.10")
AllowedSodiumVersion.exact("0.5.0-rc1",
"https://modrinth.com/mod/sodium/version/mc1.20.1-0.5.0")
);

public static String getDownloadLink() {
Expand All @@ -29,6 +29,6 @@ public static boolean isAllowedVersion(String sodiumVersion) {
}
}

return true;
return false;
}
}
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"id": "iris",
"version": "1.6.4-development-environment",
"version": "1.6.5-beta.1-development-environment",

"name": "Iris",
"description": "A modern shaders mod for Minecraft intended to be compatible with existing OptiFine shader packs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ public class MixinBoxCullingFrustum implements IrisFrustum, ViewportProvider {

@Override
public boolean apply(double minX, double minY, double minZ, double maxX, double maxY, double maxZ) {
return boxCuller.isCulled(minX, minY, minZ, maxX, maxY, maxZ);
return !boxCuller.isCulled(minX, minY, minZ, maxX, maxY, maxZ);
}
}

0 comments on commit c1f5e81

Please sign in to comment.