r1tsuu / payload-enchants

Payload 3.0 enchantment packages
MIT License
83 stars 7 forks source link

Prevent null reference. Fixes #64 #66

Closed lynndylanhurley closed 1 month ago

lynndylanhurley commented 1 month ago

If the richTextDataFrom value is null or undefined (which is a valid condition), the check for the root attr will fail.

This resolves the issue.

r1tsuu commented 1 month ago

Thank you!