Skip to content

Commit

Permalink
Remove obsolete null check.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnuecke committed Jan 15, 2022
1 parent 2ba854c commit 8a3add0
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ public AbstractContainer(@Nullable final MenuType<?> type, final int id) {
@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;
Expand Down

0 comments on commit 8a3add0

Please sign in to comment.