Skip to content

Commit

Permalink
Fix ChargingBench
Browse files Browse the repository at this point in the history
- ChargingBench can now only recharge ItemStacks with 1 item.
  • Loading branch information
Intybyte committed May 3, 2024
1 parent 45601c8 commit 2fd2cea
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ protected void tick(Block b) {
for (int slot : getInputSlots()) {
ItemStack item = inv.getItemInSlot(slot);

if (item == null)
continue;

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

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

0 comments on commit 2fd2cea

Please sign in to comment.