diff --git a/IF/src/main/java/com/github/stefvanschie/inventoryframework/pane/MasonryPane.java b/IF/src/main/java/com/github/stefvanschie/inventoryframework/pane/MasonryPane.java index 8a0e168b..894e87da 100644 --- a/IF/src/main/java/com/github/stefvanschie/inventoryframework/pane/MasonryPane.java +++ b/IF/src/main/java/com/github/stefvanschie/inventoryframework/pane/MasonryPane.java @@ -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) ); @@ -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) );