diff --git a/common/src/main/java/hunternif/mc/impl/atlas/client/OverlayRenderer.java b/common/src/main/java/hunternif/mc/impl/atlas/client/OverlayRenderer.java index 9b1b04981..ed3d55c2f 100644 --- a/common/src/main/java/hunternif/mc/impl/atlas/client/OverlayRenderer.java +++ b/common/src/main/java/hunternif/mc/impl/atlas/client/OverlayRenderer.java @@ -63,11 +63,6 @@ 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); @@ -86,6 +81,10 @@ 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(); }