1
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:
Vaan1310 2024-08-08 18:45:24 +02:00 committed by GitHub
parent d25f22439e
commit 2fd0f8a0d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
} }