fix extraction from StorageMonitor not respecting maxStackSize fixes #3108
This commit is contained in:
@@ -193,7 +193,7 @@ public class StorageMonitorNetworkNode extends NetworkNode implements IComparabl
|
|||||||
private void extractItems(PlayerEntity player) {
|
private void extractItems(PlayerEntity player) {
|
||||||
ItemStack filter = itemFilter.getStackInSlot(0);
|
ItemStack filter = itemFilter.getStackInSlot(0);
|
||||||
|
|
||||||
int toExtract = player.isCrouching() ? 1 : 64;
|
int toExtract = player.isCrouching() ? 1 : filter.getMaxStackSize();
|
||||||
|
|
||||||
if (!filter.isEmpty()) {
|
if (!filter.isEmpty()) {
|
||||||
ItemStack result = network.extractItem(filter, toExtract, compare, Action.PERFORM);
|
ItemStack result = network.extractItem(filter, toExtract, compare, Action.PERFORM);
|
||||||
|
|||||||
Reference in New Issue
Block a user