Skip to content

Commit

Permalink
Used slot position to calculate offset instead of pane position
Browse files Browse the repository at this point in the history
  • Loading branch information
Mastermori authored and stefvanschie committed Mar 1, 2024
1 parent fa7c120 commit 569b2cf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ public void display(@NotNull InventoryComponent inventoryComponent, int paneOffs

pane.display(
inventoryComponent,
paneOffsetX + x,
paneOffsetY + y,
paneOffsetX + getSlot().getX(length),
paneOffsetY + getSlot().getY(length),
Math.min(this.length, maxLength),
Math.min(this.height, maxHeight)
);
Expand Down Expand Up @@ -163,8 +163,8 @@ public void display(@NotNull InventoryComponent inventoryComponent, int paneOffs

pane.display(
inventoryComponent,
paneOffsetX + x,
paneOffsetY + y,
paneOffsetX + getSlot().getX(length),
paneOffsetY + getSlot().getY(length),
Math.min(this.length, maxLength),
Math.min(this.height, maxHeight)
);
Expand Down

0 comments on commit 569b2cf

Please sign in to comment.