aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2024-12-13 19:31:20 +0800
committershedaniel <daniel@shedaniel.me>2024-12-13 19:32:10 +0800
commit2eaaf02a116102cbc53e5707d5443d0c137055ff (patch)
treea5f463d5c63660520593a5c000ec9a14c5d8a238 /runtime
parent7d9ab3e4a44c5d6859abb7eb40308ae4dad9c831 (diff)
downloadRoughlyEnoughItems-2eaaf02a116102cbc53e5707d5443d0c137055ff.tar.gz
RoughlyEnoughItems-2eaaf02a116102cbc53e5707d5443d0c137055ff.tar.bz2
RoughlyEnoughItems-2eaaf02a116102cbc53e5707d5443d0c137055ff.zip
Fix sub-menus not showing
Diffstat (limited to 'runtime')
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/modules/entries/SubMenuEntry.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/modules/entries/SubMenuEntry.java b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/modules/entries/SubMenuEntry.java
index cb150b7c1..845e0e1fd 100644
--- a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/modules/entries/SubMenuEntry.java
+++ b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/modules/entries/SubMenuEntry.java
@@ -120,7 +120,10 @@ public class SubMenuEntry extends AbstractMenuEntry {
}
RenderSystem.disableScissor();
+ GuiGraphics.ScissorStack tmp = graphics.scissorStack;
+ graphics.scissorStack = new GuiGraphics.ScissorStack();
menu.render(graphics, mouseX, mouseY, delta);
+ graphics.scissorStack = tmp;
graphics.enableScissor(0, 0, 0, 0);
graphics.disableScissor();
}