From d61aacde166a81028bee7af4a6443415a71c38e2 Mon Sep 17 00:00:00 2001 From: viliml Date: Thu, 18 Jul 2013 15:44:14 +0200 Subject: [PATCH] Fix tank not rendering fluids properly. Before every fluid in the tank was pink(no texture) because the texture path has changed in 1.6. --- common/buildcraft/core/render/FluidRenderer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/buildcraft/core/render/FluidRenderer.java b/common/buildcraft/core/render/FluidRenderer.java index 8ab5f0c3..ba216fb9 100644 --- a/common/buildcraft/core/render/FluidRenderer.java +++ b/common/buildcraft/core/render/FluidRenderer.java @@ -12,6 +12,7 @@ import java.util.HashMap; import java.util.Map; import net.minecraft.block.Block; import net.minecraft.client.renderer.GLAllocation; +import net.minecraft.client.renderer.texture.TextureMap; import net.minecraft.util.Icon; import net.minecraft.util.ResourceLocation; import net.minecraft.world.World; @@ -26,7 +27,7 @@ import org.lwjgl.opengl.GL11; */ public class FluidRenderer { - private static final ResourceLocation BLOCK_TEXTURE = new ResourceLocation("/terrain.png"); + private static final ResourceLocation BLOCK_TEXTURE = TextureMap.field_110575_b; private static Map flowingRenderCache = new HashMap(); private static Map stillRenderCache = new HashMap(); public static final int DISPLAY_STAGES = 100;