[Bug] ChiseledBookshelfProcessor does not respect Enchantment.isDiscoverable()
murphy-slaw opened this issue ยท 1 comments
Version Info
- Minecraft, 1.20.1
- Formations, 1.0.3-fabric-mc1.20.2
What mod loader are you using?:
Fabric
Description of the Bug
When adding enchanted books to Chiseled Bookshelves, the processor selects a random enchantment from the entire enchantment registry, including enchantments which have isDiscoverable or isTreasure set to false. These enchantments don't generate in loot tables and should not be randomly generated.
Steps to Reproduce
Find a Witch Tower or other structure with chiseled bookshelves. Sometimes there will be modded or vanilla enchantments which should not be randomly selected (Like Soul Speed or Swift Sneak) included in the shelf contents.