Skip to content

Commit

Permalink
Fix create storage upgrade not increasing storage on compacting drawers
Browse files Browse the repository at this point in the history
  • Loading branch information
jaquadro committed Aug 27, 2017
1 parent b6ee2ac commit 5507f08
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ public int getRemainingCapacity (int slot) {
if (attrs.isUnlimitedVending())
return Integer.MAX_VALUE;

int rawMaxCapacity = baseStack().getItem().getItemStackLimit(baseStack()) * group.getStackCapacity() * baseRate();
int rawMaxCapacity = getMaxCapacity(0) * baseRate();
int rawRemaining = rawMaxCapacity - pooledCount;

return rawRemaining / convRate[slot];
Expand All @@ -355,7 +355,7 @@ public int getAcceptingRemainingCapacity (int slot) {
if (attrs.isUnlimitedVending() || attrs.isVoid())
return Integer.MAX_VALUE;

int rawMaxCapacity = baseStack().getItem().getItemStackLimit(baseStack()) * group.getStackCapacity() * baseRate();
int rawMaxCapacity = getMaxCapacity(0) * baseRate();
int rawRemaining = rawMaxCapacity - pooledCount;

return rawRemaining / convRate[slot];
Expand Down

0 comments on commit 5507f08

Please sign in to comment.