custom elytra

i have a datapack, which spawns the elytras in the end cities with a random custom texture based on its lore tag which is set by the datapack. it worked fine on our server and still does, however it has a bug now, so whenever someone places an elytra into a itemframe, it rerolls the texture and i cant find out why

Continue to help post