Fixed block color multiplier not being cached properly in the forge renderer, performance improvement.
This commit is contained in:
parent
cf8972262a
commit
c3141b6ed6
1 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue