Automatic conveyor/conduit bridging

This commit is contained in:
Anuken
2021-02-22 10:15:40 -05:00
parent 9e8a2b8296
commit e2515fc4bf
8 changed files with 95 additions and 18 deletions

View File

@@ -59,7 +59,7 @@ public class LoadoutDialog extends BaseDialog{
public void maxItems() {
for(ItemStack stack : stacks){
stack.amount = total == null ? capacity : Math.min(capacity, total.get(stack.item));
stack.amount = total == null ? capacity : Math.max(Math.min(capacity, total.get(stack.item)), 0);
}
}