File tree 2 files changed +3
-2
lines changed
src/main/java/com/simibubi/create/content/redstone/thresholdSwitch 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ Change logging starts below:
20
20
- Fix nonsense fluid unit option when display links measured items (#995)
21
21
- Fix copycat panels with framed glass not hiding faces when using sodium (#1540)
22
22
- Fix filtered Smart Observers stopping listing matching items after finding 1 non-matching item (#996)
23
+ - Fix incorrect capacities on large storages (#1633, #1637)
23
24
- Merge in 0.5.1.g/h (https://github.com/Creators-of-Create/Create/wiki/0.5.1g-&-h)
24
25
- Merge in 0.5.1.i (https://github.com/Creators-of-Create/Create/wiki/0.5.1i)
25
26
- Merge in 0.5.1.j (https://github.com/Creators-of-Create/Create/wiki/0.5.1j)
Original file line number Diff line number Diff line change @@ -146,8 +146,8 @@ public void updateCurrentLevel() {
146
146
invVersionTracker .awaitNewVersion (inv );
147
147
try (Transaction t = TransferUtil .getTransaction ()) {
148
148
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 ();
151
151
long count = view .getAmount ();
152
152
if (space == 0 )
153
153
continue ;
You can’t perform that action at this time.
0 commit comments