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 826f8af8cc..d0354dbbdd 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 @@ -114,14 +114,13 @@ public void updateCurrentLevel() { if (observedInventory.hasInventory()) { // Item inventory - try (Transaction t = TransferUtil.getTransaction()) { - Storage inv = observedInventory.getInventory(); - if (invVersionTracker.stillWaiting(inv)) { - occupied = prevLevel; - totalSpace = 1f; - - } else { - invVersionTracker.awaitNewVersion(inv); + Storage inv = observedInventory.getInventory(); + if (invVersionTracker.stillWaiting(inv)) { + occupied = prevLevel; + totalSpace = 1f; + } else { + invVersionTracker.awaitNewVersion(inv); + try (Transaction t = TransferUtil.getTransaction()) { for (StorageView view : inv) { long space = view.getCapacity(); long count = view.getAmount();