@ Override protected void resetDrag ( ) { if ( ! isDraggingItemStack ( ) ) return ; //if (!pickedItemStack.isEmpty()) pickedItemStack = draggedItemStack . copy ( ) ; draggedSlots . forEach ( s -> s . setDraggedItemStack ( ItemStack . EMPTY ) ) ; draggedSlots . clear ( ) ; draggedItemStack = null ; dragType = - 1 ; }
Resets the dragging state .