Fixed block color multiplier not being cached properly in the forge renderer, performance improvement.

This commit is contained in:
RainWarrior 2015-11-03 16:00:44 +03:00
parent cf8972262a
commit c3141b6ed6

View file

@ -27,7 +27,9 @@ public class BlockInfo
public int getColorMultiplier(int tint)
{
if(cachedTint == tint) return cachedMultiplier;
return block.colorMultiplier(world, blockPos, tint);
cachedTint = tint;
cachedMultiplier = block.colorMultiplier(world, blockPos, tint);
return cachedMultiplier;
}
public void updateShift()