Skip to content

Commit

Permalink
combine ifs
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAHuman-xD authored May 30, 2024
1 parent 0c397a7 commit f54ee0a
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ protected void tick(Block b) {
for (int slot : getInputSlots()) {
ItemStack item = inv.getItemInSlot(slot);

if (item == null) {
continue;
}

if (item.getAmount() != 1) {
if (item == null || item.getAmount() != 1) {
continue;
}

Expand Down

0 comments on commit f54ee0a

Please sign in to comment.