Remove obsolete null check.

This commit is contained in:
Florian Nücke
2022-01-15 19:40:01 +01:00
parent 2ba854ca27
commit 8a3add0223

View File

@@ -23,9 +23,6 @@ public abstract class AbstractContainer extends AbstractContainerMenu {
@Override
public ItemStack quickMoveStack(final Player player, final int index) {
final Slot from = slots.get(index);
if (from == null) {
return ItemStack.EMPTY;
}
final ItemStack stack = from.getItem().copy();
if (stack.isEmpty()) {
return ItemStack.EMPTY;