From 1680d74d6d111ecc531d73cb9114df22ae968a68 Mon Sep 17 00:00:00 2001 From: MrTJP Date: Sun, 15 Jun 2014 11:26:19 -0400 Subject: [PATCH] Light attribute should not depend on colour Light attribute makes sure that we have color, but at the time of check, hasColour is false, because nothing has operated yet. We want to check the context flag instead. (We could just not check this color flag at all, and leave the two actually 'separate') --- src/codechicken/lib/render/CCRenderState.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codechicken/lib/render/CCRenderState.java b/src/codechicken/lib/render/CCRenderState.java index 624244d..70f9db1 100644 --- a/src/codechicken/lib/render/CCRenderState.java +++ b/src/codechicken/lib/render/CCRenderState.java @@ -190,7 +190,7 @@ public class CCRenderState @Override public boolean load() { - if(!computeLighting || !hasColour || !model.hasAttribute(this)) + if(!computeLighting || !useColour || !model.hasAttribute(this)) return false; colourRef = model.getAttributes(this);