mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 02:55:17 +00:00
Fixed block color multiplier not being cached properly in the forge renderer, performance improvement.
This commit is contained in:
1 parent
cf8972262a
commit
c3141b6ed6
1 file changed
+3
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user