Skip to content

Commit d6dcf24

Browse files
committed
fix: translate configuration tabs/panels to be above JEI/EMI background
1 parent 1d345a0 commit d6dcf24

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/dev/galacticraft/machinelib/client/api/screen/MachineScreen.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ public void appendEnergyTooltip(List<Component> lines) {
273273
protected void drawConfigurationPanels(@NotNull GuiGraphics graphics, int mouseX, int mouseY) {
274274
assert this.minecraft != null;
275275
PoseStack poseStack = graphics.pose();
276+
poseStack.pushPose();
277+
poseStack.translate(0, 0, 10);
276278

277279
int leftX = this.leftPos;
278280
int rightX = this.leftPos + this.imageWidth;
@@ -281,7 +283,6 @@ protected void drawConfigurationPanels(@NotNull GuiGraphics graphics, int mouseX
281283
int width;
282284
int height;
283285
for (Tab tab : Tab.values()) { // 0, 1, 2, 3
284-
poseStack.pushPose();
285286
width = tab.isOpen() ? PANEL_WIDTH : TAB_WIDTH;
286287
height = tab.isOpen() ? PANEL_HEIGHT : TAB_HEIGHT;
287288
if (tab.isLeft()) {
@@ -297,9 +298,7 @@ protected void drawConfigurationPanels(@NotNull GuiGraphics graphics, int mouseX
297298
}
298299
rightY += height + SPACING;
299300
}
300-
poseStack.popPose();
301301
}
302-
poseStack.pushPose();
303302
poseStack.translate(this.leftPos, this.topPos, 0);
304303

305304
if (Tab.REDSTONE.isOpen()) {

0 commit comments

Comments
 (0)