mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
Fix ChargingBench (#4184)
Resolves #4183 * Fix ChargingBench - ChargingBench can now only recharge ItemStacks with 1 item. --------- Co-authored-by: J3fftw <44972470+J3fftw1@users.noreply.github.com> Co-authored-by: JustAHuman-xD <65748158+JustAHuman-xD@users.noreply.github.com>
This commit is contained in:
parent
d25f22439e
commit
2fd0f8a0d8
@ -44,6 +44,10 @@ public class ChargingBench extends AContainer {
|
|||||||
for (int slot : getInputSlots()) {
|
for (int slot : getInputSlots()) {
|
||||||
ItemStack item = inv.getItemInSlot(slot);
|
ItemStack item = inv.getItemInSlot(slot);
|
||||||
|
|
||||||
|
if (item == null || item.getAmount() != 1) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (charge(b, inv, slot, item)) {
|
if (charge(b, inv, slot, item)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user