From 0ca985e2c2091f186e55373ab349a0a6e9ef46ef Mon Sep 17 00:00:00 2001
From: RichieSams <adastley@gmail.com>
Date: Thu, 23 Jun 2022 15:17:51 -0400
Subject: [PATCH] Fix the bitwise comparison for BAKE_NORMALIZED (#2353)

The bitwise comparison is doing the opposite of what we want. It's currently checking for the *absence* of the BAKE_NORMALIZED flag. And if the flag is absent, it is normalizing. This should do the opposite.
---
 .../impl/client/indigo/renderer/helper/TextureHelper.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fabric-renderer-indigo/src/main/java/net/fabricmc/fabric/impl/client/indigo/renderer/helper/TextureHelper.java b/fabric-renderer-indigo/src/main/java/net/fabricmc/fabric/impl/client/indigo/renderer/helper/TextureHelper.java
index 94c5c1b1c..bfe93ea90 100644
--- a/fabric-renderer-indigo/src/main/java/net/fabricmc/fabric/impl/client/indigo/renderer/helper/TextureHelper.java
+++ b/fabric-renderer-indigo/src/main/java/net/fabricmc/fabric/impl/client/indigo/renderer/helper/TextureHelper.java
@@ -39,7 +39,7 @@ public class TextureHelper {
 		if (quad.nominalFace() != null && (MutableQuadView.BAKE_LOCK_UV & bakeFlags) != 0) {
 			// Assigns normalized UV coordinates based on vertex positions
 			applyModifier(quad, spriteIndex, UVLOCKERS[quad.nominalFace().getId()]);
-		} else if ((MutableQuadView.BAKE_NORMALIZED & bakeFlags) == 0) {
+		} else if ((MutableQuadView.BAKE_NORMALIZED & bakeFlags) != 0) {
 			// Scales from 0-16 to 0-1
 			applyModifier(quad, spriteIndex, (q, i, t) -> q.sprite(i, t, q.spriteU(i, t) * NORMALIZER, q.spriteV(i, t) * NORMALIZER));
 		}