From 84f54d7baa1d7c5d95a090eb329ede4b3fae2db2 Mon Sep 17 00:00:00 2001 From: IThundxr Date: Thu, 27 Jun 2024 10:31:23 -0400 Subject: [PATCH] Fix threshold switch not reading big stacks properly Fixes #1427 Fixes #1459 --- .../redstone/thresholdSwitch/ThresholdSwitchBlockEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/simibubi/create/content/redstone/thresholdSwitch/ThresholdSwitchBlockEntity.java b/src/main/java/com/simibubi/create/content/redstone/thresholdSwitch/ThresholdSwitchBlockEntity.java index 83b72b6a2e..689c72cb8c 100644 --- a/src/main/java/com/simibubi/create/content/redstone/thresholdSwitch/ThresholdSwitchBlockEntity.java +++ b/src/main/java/com/simibubi/create/content/redstone/thresholdSwitch/ThresholdSwitchBlockEntity.java @@ -125,7 +125,7 @@ public void updateCurrentLevel() { invVersionTracker.awaitNewVersion(inv); for (StorageView view : inv) { ItemStack stackInSlot = view.getResource().toStack(); - long space = Math.min(stackInSlot.getMaxStackSize(), view.getCapacity()); + long space = view.getCapacity(); long count = view.getAmount(); if (space == 0) continue;