Update formatting

This commit is contained in:
Intelli 2023-07-12 16:33:50 -06:00
parent d200616fe1
commit cde18dc529
1 changed files with 9 additions and 11 deletions

View File

@ -457,20 +457,18 @@ public class Util extends Queue {
try {
int c1 = 0;
for (ItemStack o1 : items) {
if (o1 != null) {
if (o1.getAmount() != 0) {
int c2 = 0;
for (ItemStack o2 : items) {
if (o2 != null && c2 > c1 && o1.isSimilar(o2) && !Util.isAir(o1.getType())) { // Ignores amount
int namount = o1.getAmount() + o2.getAmount();
o1.setAmount(namount);
o2.setAmount(0);
}
c2++;
if (o1 != null && o1.getAmount() > 0) {
int c2 = 0;
for (ItemStack o2 : items) {
if (o2 != null && c2 > c1 && o1.isSimilar(o2) && !Util.isAir(o1.getType())) { // Ignores amount
int namount = o1.getAmount() + o2.getAmount();
o1.setAmount(namount);
o2.setAmount(0);
}
c2++;
}
}
c1++;
c1++;
}
}
catch (Exception e) {