Fixed bug: items are not duplicated when game rule "keepInventory" is on