From c3141b6ed6d7b0ff48151d8b0aa8e2797f6a8540 Mon Sep 17 00:00:00 2001 From: RainWarrior Date: Tue, 3 Nov 2015 16:00:44 +0300 Subject: [PATCH] Fixed block color multiplier not being cached properly in the forge renderer, performance improvement. --- .../net/minecraftforge/client/model/pipeline/BlockInfo.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/minecraftforge/client/model/pipeline/BlockInfo.java b/src/main/java/net/minecraftforge/client/model/pipeline/BlockInfo.java index 620510f71..b3908c39b 100644 --- a/src/main/java/net/minecraftforge/client/model/pipeline/BlockInfo.java +++ b/src/main/java/net/minecraftforge/client/model/pipeline/BlockInfo.java @@ -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()