Make SlotItemHandler override Slot.getSlotStackLimit. Closes #3497

Make Container.mergeItemStack respect target slot's max size when slot is non-empty. Closes #3498
Fix Shift clicking in Beacons with stacked items when fuel slot is empty.
This commit is contained in:
LexManos committed 2016-12-05 12:56:05 -08:00
1 parent c82d3af550
commit c6bc4ec5a9
3 files changed
+47 -2

No files matched your search

@@ -87,6 +87,12 @@ public class SlotItemHandler extends Slot
}
@Override
public int getSlotStackLimit()
{
return this.itemHandler.getSlotLimit(this.index);
}
@Override
public int getItemStackLimit(@Nonnull ItemStack stack)
{