Skip to content

Commit

Permalink
Fix ChargingBench (#4184)
Browse files Browse the repository at this point in the history
Resolves #4183
* Fix ChargingBench
- ChargingBench can now only recharge ItemStacks with 1 item.

---------

Co-authored-by: J3fftw <[email protected]>
Co-authored-by: JustAHuman-xD <[email protected]>
  • Loading branch information
3 people committed Aug 8, 2024
1 parent d25f224 commit 2fd0f8a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ protected void tick(Block b) {
for (int slot : getInputSlots()) {
ItemStack item = inv.getItemInSlot(slot);

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

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

0 comments on commit 2fd0f8a

Please sign in to comment.