Skip to content

Commit

Permalink
Update src/main/java/io/github/thebusybiscuit/slimefun4/implementatio…
Browse files Browse the repository at this point in the history
…n/items/electric/machines/ChargingBench.java

Co-authored-by: J3fftw <[email protected]>
  • Loading branch information
Intybyte and J3fftw1 authored May 4, 2024
1 parent 2fd2cea commit 0c397a7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ protected void tick(Block b) {
for (int slot : getInputSlots()) {
ItemStack item = inv.getItemInSlot(slot);

if (item == null)
if (item == null) {
continue;
}

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

if (charge(b, inv, slot, item)) {
return;
Expand Down

0 comments on commit 0c397a7

Please sign in to comment.