Skip to content

Commit 9d6f77d

Browse files
committed
disallow putting items with item handler cap into test item
1 parent 572e51b commit 9d6f77d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/cleanroommc/modularui/test/TestItem.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ public ModularPanel buildUI(PlayerInventoryGuiData guiData, PanelSyncManager gui
6060
.row("II")
6161
.key('I', index -> new ItemSlot().slot(SyncHandlers.itemSlot(itemHandler, index)
6262
.ignoreMaxStackSize(true)
63-
.slotGroup("mixer_items")))
63+
.slotGroup("mixer_items")
64+
.filter(stack -> !stack.hasCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null))))
6465
.build()
6566
.align(Alignment.Center)))
6667
.child(SlotGroupWidget.playerInventory(false)));

0 commit comments

Comments
 (0)