Skip to content

Commit

Permalink
Fixed gas fluids rendering in guis
Browse files Browse the repository at this point in the history
  • Loading branch information
Buuz135 committed Oct 28, 2020
1 parent 889ece2 commit 5ab6edb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void drawBackgroundLayer(MatrixStack stack, Screen screen, IAssetProvider
RenderSystem.color4f(color.getRed() / 255f, color.getGreen() / 255f, color.getBlue() / 255f, color.getAlpha() / 255f);
RenderSystem.enableBlend();
Screen.blit(stack, this.getPosX() + guiX + asset.getFluidRenderPadding(Direction.WEST),
this.getPosY() + guiY + asset.getFluidRenderPadding(Direction.UP) + (fluidStack.getFluid().getAttributes().isGaseous() ? area.height - topBottomPadding : (area.height - topBottomPadding) - offset),
this.getPosY() + guiY + asset.getFluidRenderPadding(Direction.UP) + (fluidStack.getFluid().getAttributes().isGaseous() ? 0 : (area.height - topBottomPadding) - offset),
0,
(int) (area.getWidth() - asset.getFluidRenderPadding(Direction.EAST) - asset.getFluidRenderPadding(Direction.WEST)),
offset,
Expand Down

0 comments on commit 5ab6edb

Please sign in to comment.