This commit is contained in:
IThundxr 2024-02-02 19:23:36 -05:00
parent 2201d87da7
commit d62774ff65
No known key found for this signature in database
GPG Key ID: E291EC97BAF935E6

View File

@ -42,7 +42,7 @@ public class DropperMovementBehaviour implements MovementBehaviour {
.filter(itemStack -> !itemStack.isEmpty() && itemStack.getItem() != Items.AIR
&& itemStack.getMaxStackSize() > itemStack.getCount())
.forEach(itemStack -> itemStack.grow(ItemHelper
.extract(context.contraption.getSharedInventory(), itemStack::sameItem,
.extract(context.contraption.getSharedInventory(), (otherItemStack) -> ItemStack.isSameItemSameTags(itemStack, otherItemStack),
ItemHelper.ExtractionCountMode.UPTO, itemStack.getMaxStackSize() - itemStack.getCount(), false)
.getCount()));
}