We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a994d8c commit 40038e3Copy full SHA for 40038e3
src/main/java/mods/railcraft/client/render/FluidRenderer.java
@@ -49,8 +49,13 @@ public static ResourceLocation getFluidSheet(Fluid fluid) {
49
50
public static ResourceLocation setupFlowingLiquidTexture(Fluid fluid, IIcon[] texArray) {
51
if (fluid == null) return null;
52
- IIcon top = RenderTools.getSafeIcon(fluid.getStillIcon());
+
53
IIcon side = RenderTools.getSafeIcon(fluid.getFlowingIcon());
54
+ if ((fluid.getStillIcon() != null) && (fluid.getFlowingIcon() == null)) {
55
+ side = RenderTools.getSafeIcon(fluid.getStillIcon());
56
+ }
57
58
+ IIcon top = RenderTools.getSafeIcon(fluid.getStillIcon());
59
texArray[0] = top;
60
texArray[1] = top;
61
texArray[2] = side;
0 commit comments