diff --git a/src/main/java/io/github/cottonmc/cotton/gui/client/CottonInventoryScreen.java b/src/main/java/io/github/cottonmc/cotton/gui/client/CottonInventoryScreen.java index 3d807e09..06f7e3f1 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/client/CottonInventoryScreen.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/client/CottonInventoryScreen.java @@ -281,11 +281,14 @@ private void paint(DrawContext context, int mouseX, int mouseY, float delta) { if (description!=null) { WPanel root = description.getRootPanel(); if (root!=null) { + context.getMatrices().push(); + context.getMatrices().translate(0f, 0f, 0.01f); GL11.glEnable(GL11.GL_SCISSOR_TEST); Scissors.refreshScissors(); root.paint(context, x, y, mouseX-x, mouseY-y); GL11.glDisable(GL11.GL_SCISSOR_TEST); Scissors.checkStackIsEmpty(); + context.getMatrices().pop(); } } }