Changed to only complain once about enchantment ids >64; untested
Small optimization to avoid saving previous value if unneeded