Fixed HeldItem were swapped in mining

server works correctly without this code