Fixed filter slots not caring about max stack size, fixes #1707

This commit is contained in:
raoulvdberge
2018-03-18 13:10:24 +01:00
parent 207d0e851e
commit 650d4d95e4
4 changed files with 2 additions and 3 deletions

View File

@@ -3,6 +3,7 @@
### 1.5.33
- Added Crafter Manager (raoulvdberge)
- Fixed Disk Manipulator not extracting items (ineternet)
- Fixed filter slots not caring about max stack size (raoulvdberge)
- Various internal refactors (raoulvdberge)
### 1.5.32

View File

@@ -3,7 +3,6 @@ package com.raoulvdberge.refinedstorage;
import com.raoulvdberge.refinedstorage.block.*;
public final class RSBlocks {
// @todo: Switch to registry inject
public static final BlockController CONTROLLER = new BlockController();
public static final BlockCable CABLE = new BlockCable();
public static final BlockGrid GRID = new BlockGrid();

View File

@@ -3,7 +3,6 @@ package com.raoulvdberge.refinedstorage;
import com.raoulvdberge.refinedstorage.item.*;
public final class RSItems {
// @todo: Switch to registry inject
public static final ItemStorageDisk STORAGE_DISK = new ItemStorageDisk();
public static final ItemWirelessGrid WIRELESS_GRID = new ItemWirelessGrid();
public static final ItemWirelessFluidGrid WIRELESS_FLUID_GRID = new ItemWirelessFluidGrid();

View File

@@ -87,7 +87,7 @@ public abstract class ContainerBase extends Container {
if (dragType == 0) {
amount = Math.max(1, amount - 1);
} else if (dragType == 1) {
amount = Math.min(64, amount + 1);
amount = Math.min(slot.getStack().getMaxStackSize(), amount + 1);
}
slot.getStack().setCount(amount);