Skip to content

Commit

Permalink
fix backpack menu rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
UpcraftLP committed Feb 2, 2024
1 parent c2ed415 commit e1764c1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ protected void renderBg(GuiGraphics gui, float delta, int mouseX, int mouseY) {
gui.renderItem(playerInvIcon, x + 8, y + 6);
gui.renderItem(backpackInvIcon, x + 38, y + 6);
}

InventoryScreen.renderEntityInInventoryFollowsMouse(gui, leftPos + 26, topPos + 51, leftPos + 75, topPos + 139, 30, 0.0625F, mouseX, mouseY, player);
}

@Override
Expand All @@ -84,8 +86,6 @@ public void render(GuiGraphics gui, int mouseX, int mouseY, float delta) {
super.render(gui, mouseX, mouseY, delta);
renderTooltip(gui, mouseX, mouseY);

InventoryScreen.renderEntityInInventoryFollowsMouse(gui, leftPos + 50, topPos + 125, leftPos + 80, topPos + 200, 30, 0.0625F, mouseX, mouseY, player);

if (equipButton.isHovered() && !equipButton.active) {
if (!menu.isBlockEntity)
gui.renderTooltip(font, Component.translatable("container.camsbackpacks.obstructed_block"), mouseX, mouseY);
Expand Down

0 comments on commit e1764c1

Please sign in to comment.