mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-11 15:57:42 +00:00
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')
This commit is contained in:
1 parent
09bf91715b
commit
1680d74d6d
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user