1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

Update src/main/java/io/github/thebusybiscuit/slimefun4/core/networks/cargo/CargoUtils.java

Co-authored-by: TheBusyBiscuit <TheBusyBiscuit@users.noreply.github.com>
This commit is contained in:
Martin Brom 2021-05-30 13:49:43 +02:00 committed by GitHub
parent cda2228a7d
commit d23f1265b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,7 +185,7 @@ final class CargoUtils {
for (int slot = minSlot; slot < maxSlot; slot++) {
// Changes to these ItemStacks are synchronized with the Item in the Inventory
ItemStack itemInSlot = contents[slot];
if (itemInSlot == null || itemInSlot.getType() == Material.AIR) {
if (itemInSlot == null || itemInSlot.getType().isAir()) {
continue;
}