Handles cursed items "correctly" while keepInventory=true Prevents also other player from picking up items dropped on death.
The "curse of vanishing" enchanted items gets deleted on death.
The "curse of binding" enchanted items gets dropped to the ground.
Other items stay on the inventory as keepInventory=true.