Fixed can not save nbt data when use keep-item-format change rule.
Fixed incorrect armor slot mapping.
This fix the issue where when using the "replace item" type change rule, if the replaced item still meets the matching condition, clicking on it in the armor slot can result in duplication.