DeeperAndDarker
DeeperAndDarker copied to clipboard
[1.20.1] Armor material to store repairIngredient as Lazy
Description: DDArmorMaterials and DDTiers should store repairIngredients as Lazies or LazyLoadedValues. Currently, if another mod tries to add compatibility and uses this mod's materials, the game crashes because the repair items' registry objects are not loaded yet. Also it would be better to use tags instead of direct item references for better data pack support.
I found the crash can be avoided from the other end, but with the lazy value it would not be an issue in the first place. And the data pack support would be welcomed regardless, and that's for the latest version too, not just 1.20.1.
fixed in neoforge a27ad9a