From 16a577e1ebf4378864997dd4bee0c085f0db7acf Mon Sep 17 00:00:00 2001 From: Reika Date: Thu, 10 Oct 2013 00:37:31 -0400 Subject: [PATCH] Bugfix for non-world liquids --- common/buildcraft/core/render/FluidRenderer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/buildcraft/core/render/FluidRenderer.java b/common/buildcraft/core/render/FluidRenderer.java index e5c3836b..5ce8c4c2 100644 --- a/common/buildcraft/core/render/FluidRenderer.java +++ b/common/buildcraft/core/render/FluidRenderer.java @@ -28,6 +28,7 @@ import org.lwjgl.opengl.GL11; public class FluidRenderer { private static final ResourceLocation BLOCK_TEXTURE = TextureMap.locationBlocksTexture; + private static final ResourceLocation ITEM_TEXTURE = TextureMap.locationItemsTexture; private static Map flowingRenderCache = new HashMap(); private static Map stillRenderCache = new HashMap(); public static final int DISPLAY_STAGES = 100; @@ -58,7 +59,10 @@ public class FluidRenderer { } public static ResourceLocation getFluidSheet(Fluid liquid) { + if (liquid.canBePlacedInWorld()) return BLOCK_TEXTURE; + else + return ITEM_TEXTURE; } public static void setColorForFluidStack(FluidStack fluidstack) {