Skip to content

Commit

Permalink
Fix sub-menus not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
shedaniel committed Dec 13, 2024
1 parent 7d9ab3e commit 2eaaf02
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fabric/src/main/resources/roughlyenoughitems.accessWidener
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,8 @@ accessible field net/minecraft/world/item/crafting/ShapelessRecipe result Lnet/m
accessible field net/minecraft/client/gui/screens/inventory/AbstractRecipeBookScreen recipeBookComponent Lnet/minecraft/client/gui/screens/recipebook/RecipeBookComponent;
accessible method net/minecraft/client/gui/GuiGraphics innerBlit (Ljava/util/function/Function;Lnet/minecraft/resources/ResourceLocation;IIIIFFFFI)V
accessible field net/minecraft/client/gui/GuiGraphics bufferSource Lnet/minecraft/client/renderer/MultiBufferSource$BufferSource;
accessible field net/minecraft/client/gui/GuiGraphics scissorStack Lnet/minecraft/client/gui/GuiGraphics$ScissorStack;
mutable field net/minecraft/client/gui/GuiGraphics scissorStack Lnet/minecraft/client/gui/GuiGraphics$ScissorStack;
accessible class net/minecraft/client/gui/GuiGraphics$ScissorStack
accessible field net/minecraft/client/gui/GuiGraphics$ScissorStack stack Ljava/util/Deque;
accessible method net/minecraft/client/gui/GuiGraphics$ScissorStack <init> ()V
4 changes: 4 additions & 0 deletions neoforge/src/main/resources/META-INF/accesstransformer.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ public net.minecraft.world.item.crafting.ShapelessRecipe result
public net.minecraft.client.gui.screens.inventory.AbstractRecipeBookScreen recipeBookComponent
public net.minecraft.client.gui.GuiGraphics innerBlit(Ljava/util/function/Function;Lnet/minecraft/resources/ResourceLocation;IIIIFFFFI)V
public net.minecraft.client.gui.GuiGraphics bufferSource
public-f net.minecraft.client.gui.GuiGraphics scissorStack
public net.minecraft.client.gui.GuiGraphics$ScissorStack
public net.minecraft.client.gui.GuiGraphics$ScissorStack stack
public net.minecraft.client.gui.GuiGraphics$ScissorStack <init>()V
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ public void render(GuiGraphics graphics, int mouseX, int mouseY, float delta) {
}

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();
}
Expand Down

0 comments on commit 2eaaf02

Please sign in to comment.