Skip to content

Commit 9672917

Browse files
committed
fix(trifles): prevent in-inventory item placement into stacked storage items (fixes #206)
1 parent 3c9a14c commit 9672917

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vane-trifles/src/main/java/org/oddlama/vane/trifles/StorageGroup.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public void on_place_item_in_storage_inventory(InventoryClickEvent event) {
5454

5555
// Put non-storage items in a right-clicked storage item
5656
if (event.getClick() == ClickType.RIGHT && event.getAction() == InventoryAction.SWAP_WITH_CURSOR
57-
&& is_storage_item(event.getCurrentItem())) {
57+
&& is_storage_item(event.getCurrentItem()) && event.getCurrentItem().getAmount() == 1) {
5858

5959
// Allow putting in any items that are not a storage item, or storage items that have nothing in them.
6060
if (!(is_storage_item(event.getCursor()) && event.getCursor().hasItemMeta())) {

0 commit comments

Comments
 (0)