Fixed upgrades in the Compacting drawer, closes #61 closes #54

This commit is contained in:
Buuz135 2022-07-30 12:12:04 +02:00
parent febd346816
commit d471660c00

View File

@ -141,6 +141,7 @@ public abstract class CompactingInventoryHandler implements IItemHandler, INBTSe
} }
public int getSlotLimitBase(int slot){ public int getSlotLimitBase(int slot){
if (slot == 3) return Integer.MAX_VALUE;
return (int) Math.min(Integer.MAX_VALUE, Math.floor(TOTAL_AMOUNT / this.resultList.get(slot).getNeeded())); return (int) Math.min(Integer.MAX_VALUE, Math.floor(TOTAL_AMOUNT / this.resultList.get(slot).getNeeded()));
} }