From f70233bcbe4f1dea357c45f7c08dc9ea8489497f Mon Sep 17 00:00:00 2001 From: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> Date: Sat, 30 Sep 2023 20:35:02 -0700 Subject: [PATCH] Make null tintBlock force enable AO - Make it so a null tintBlock force enables AO instead of using default AO - Bump version --- gradle.properties | 2 +- .../java/me/pepperbell/continuity/client/util/RenderUtil.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 7934bd4..2220475 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,7 +9,7 @@ yarn_mappings = 1.19.4+build.2 loader_version = 0.14.21 # Mod Properties -mod_version = 3.0.0-beta.3 +mod_version = 3.0.0-beta.4 mod_minecraft_version = 1.19.4 maven_group = me.pepperbell archives_base_name = continuity diff --git a/src/main/java/me/pepperbell/continuity/client/util/RenderUtil.java b/src/main/java/me/pepperbell/continuity/client/util/RenderUtil.java index fe22d2c..cf411d4 100644 --- a/src/main/java/me/pepperbell/continuity/client/util/RenderUtil.java +++ b/src/main/java/me/pepperbell/continuity/client/util/RenderUtil.java @@ -136,6 +136,8 @@ public static RenderMaterial findOverlayMaterial(BlendMode blendMode, @Nullable finder.blendMode(blendMode); if (tintBlock != null) { finder.ambientOcclusion(TriState.of(canHaveAO(tintBlock))); + } else { + finder.ambientOcclusion(TriState.TRUE); } return finder.find(); }