Skip to content

Commit 1557bb0

Browse files
committed
we did this fix in june what happened to it
fix #1633, fix #1637
1 parent ff60e93 commit 1557bb0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

FABRIC_CHANGELOG.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Change logging starts below:
2020
- Fix nonsense fluid unit option when display links measured items (#995)
2121
- Fix copycat panels with framed glass not hiding faces when using sodium (#1540)
2222
- Fix filtered Smart Observers stopping listing matching items after finding 1 non-matching item (#996)
23+
- Fix incorrect capacities on large storages (#1633, #1637)
2324
- Merge in 0.5.1.g/h (https://github.com/Creators-of-Create/Create/wiki/0.5.1g-&-h)
2425
- Merge in 0.5.1.i (https://github.com/Creators-of-Create/Create/wiki/0.5.1i)
2526
- Merge in 0.5.1.j (https://github.com/Creators-of-Create/Create/wiki/0.5.1j)

src/main/java/com/simibubi/create/content/redstone/thresholdSwitch/ThresholdSwitchBlockEntity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ public void updateCurrentLevel() {
146146
invVersionTracker.awaitNewVersion(inv);
147147
try (Transaction t = TransferUtil.getTransaction()) {
148148
for (StorageView<ItemVariant> view : inv.iterable(t)) {
149-
// fabric: compat is unused, skip it
150-
long space = Math.min(view.getResource().getItem().getMaxStackSize(), view.getCapacity());
149+
// fabric: forge also checks for item max stack size, we should just trust capacity on fabric though.
150+
long space = view.getCapacity();
151151
long count = view.getAmount();
152152
if (space == 0)
153153
continue;

0 commit comments

Comments
 (0)