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.
This commit is contained in:
viliml 2013-07-18 15:44:14 +02:00
parent e3e9404b8a
commit d61aacde16

View file

@ -12,6 +12,7 @@ import java.util.HashMap;
import java.util.Map; import java.util.Map;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.client.renderer.GLAllocation; import net.minecraft.client.renderer.GLAllocation;
import net.minecraft.client.renderer.texture.TextureMap;
import net.minecraft.util.Icon; import net.minecraft.util.Icon;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -26,7 +27,7 @@ import org.lwjgl.opengl.GL11;
*/ */
public class FluidRenderer { 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<Fluid, int[]> flowingRenderCache = new HashMap<Fluid, int[]>(); private static Map<Fluid, int[]> flowingRenderCache = new HashMap<Fluid, int[]>();
private static Map<Fluid, int[]> stillRenderCache = new HashMap<Fluid, int[]>(); private static Map<Fluid, int[]> stillRenderCache = new HashMap<Fluid, int[]>();
public static final int DISPLAY_STAGES = 100; public static final int DISPLAY_STAGES = 100;