fix Z-fighting on almost empty tanks

This commit is contained in:
ljfa-ag 2015-04-25 23:01:29 +02:00
parent 0721f9e57a
commit b500dcb531

View file

@ -114,7 +114,7 @@ public final class FluidRenderer {
liquidBlock.minZ = 0.01f;
liquidBlock.maxX = 0.99f;
liquidBlock.maxY = (float) s / (float) DISPLAY_STAGES;
liquidBlock.maxY = Math.max(s, 1) / (float) DISPLAY_STAGES;
liquidBlock.maxZ = 0.99f;
RenderEntityBlock.INSTANCE.renderBlock(liquidBlock);