Remove obsolete null check.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user