Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Commit

Permalink
Revert "Compatibility with iris (AntiqueAtlasTeam#416)"
Browse files Browse the repository at this point in the history
This reverts commit 99330bd.

Neither this commit alone, nor the follow-up commit solves the problem.
It feels like a work-around and I haven't even understood the underlying
problem yet. So I'm going to revert it for now.
  • Loading branch information
tyra314 authored and kallmetony committed Dec 25, 2023
1 parent 1180639 commit 1b8bc88
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ private void drawMinimap(MatrixStack matrices, int atlasID, VertexConsumerProvid
RenderSystem.enableBlend();
RenderSystem.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);

matrices.push();
matrices.translate(0, 0, 0.01);
Textures.BOOK.drawWithLight(buffer, matrices, 0, 0, (int) (GuiAtlas.WIDTH * 1.5), (int) (GuiAtlas.HEIGHT * 1.5), light);
matrices.pop();

matrices.push();
matrices.scale(INNER_ELEMENTS_SCALE_FACTOR, INNER_ELEMENTS_SCALE_FACTOR, 1F);

Expand All @@ -81,10 +86,6 @@ private void drawMinimap(MatrixStack matrices, int atlasID, VertexConsumerProvid
matrices.translate(0, 0, -0.01);
Textures.BOOK_FRAME.drawWithLight(buffer, matrices, 0, 0, (int) (GuiAtlas.WIDTH * 1.5), (int) (GuiAtlas.HEIGHT * 1.5), light);

matrices.translate(0, 0, 0.04);
// I don't know why, anyway, it's compatible with iris when I put it here
Textures.BOOK.drawWithLight(buffer, matrices, 0, 0, (int) (GuiAtlas.WIDTH * 1.5), (int) (GuiAtlas.HEIGHT * 1.5), light);

RenderSystem.disableBlend();
}

Expand Down

0 comments on commit 1b8bc88

Please sign in to comment.