Skip to content

Commit

Permalink
use isEmpty properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellpeck committed Nov 30, 2024
1 parent 474f072 commit 4a0cde4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void tick(ItemStack module, PipeBlockEntity tile) {
}
}
network.endProfile();
} else if (craft.travelingIngredients.size() <= 0) {
} else if (craft.travelingIngredients.isEmpty()) {
// pull requested crafting results from the network once they are stored
network.startProfile("crafting_results");
var items = network.getOrderedNetworkItems(tile.getBlockPos());
Expand Down Expand Up @@ -219,7 +219,7 @@ public ItemStack store(ItemStack module, PipeBlockEntity tile, ItemStack stack,
}
}

if (craft.travelingIngredients.size() <= 0 && craft.ingredientsToRequest.size() <= 0) {
if (craft.travelingIngredients.isEmpty() && craft.ingredientsToRequest.isEmpty()) {
if (contents.emitRedstone) {
tile.redstoneTicks = 5;
tile.getLevel().updateNeighborsAt(tile.getBlockPos(), tile.getBlockState().getBlock());
Expand Down

0 comments on commit 4a0cde4

Please sign in to comment.