mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
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:
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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user