diff --git a/src/com/jaquadro/minecraft/storagedrawers/block/tile/tiledata/FractionalDrawerGroup.java b/src/com/jaquadro/minecraft/storagedrawers/block/tile/tiledata/FractionalDrawerGroup.java index f0abecd10..b1b43542e 100644 --- a/src/com/jaquadro/minecraft/storagedrawers/block/tile/tiledata/FractionalDrawerGroup.java +++ b/src/com/jaquadro/minecraft/storagedrawers/block/tile/tiledata/FractionalDrawerGroup.java @@ -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]; @@ -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];