diff --git a/Common/src/main/java/dev/cammiescorner/camsbackpacks/client/screen/BackpackScreen.java b/Common/src/main/java/dev/cammiescorner/camsbackpacks/client/screen/BackpackScreen.java index 55e3b33..2c6b943 100644 --- a/Common/src/main/java/dev/cammiescorner/camsbackpacks/client/screen/BackpackScreen.java +++ b/Common/src/main/java/dev/cammiescorner/camsbackpacks/client/screen/BackpackScreen.java @@ -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 @@ -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);