Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursivePineapple committed Feb 11, 2025
1 parent 51320d3 commit e1f19c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTBase;

import gregtech.api.GregTechAPI;
import gregtech.api.covers.CoverRegistry;
import gregtech.api.util.CoverBehaviorBase;
import gregtech.api.util.ISerializableObject;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,10 @@ public BooleanObjectImmutablePair<List<BigItemStack>> tryConsumeItems(List<BigIt

// if we aren't allowed to partially consume items, make sure everything was consumed
if ((flags & CONSUME_PARTIAL) == 0) {
if (simulated.stream().anyMatch(s -> s.getStackSize() > 0)) {
return BooleanObjectImmutablePair.of(false, null);
}
if (simulated.stream().anyMatch(s -> s.getStackSize() > 0)) return BooleanObjectImmutablePair.of(false, null);
}

if ((flags & CONSUME_SIMULATED) != 0) {
return BooleanObjectImmutablePair.of(true, merge(extracted));
}
if ((flags & CONSUME_SIMULATED) != 0) return BooleanObjectImmutablePair.of(true, merge(extracted));

visitedGrids.clear();

Expand Down

0 comments on commit e1f19c9

Please sign in to comment.