kyrptonaught / EnchantedToolTips

MIT License
11 stars 7 forks source link

Shift over book with removed enchants crashes game. #3

Closed ghost closed 5 years ago

ghost commented 5 years ago

Game crashes when and enchanted books with removed enchantments is shift'd over. Due to (this) returning null. https://github.com/kyrptonaught/EnchantedToolTips/blob/9ddc6f84ba5999e4a06f94f349f8446fde6df01b/src/main/java/net/kyrptonaught/enchantedtooltips/EnchantToolTipHelper.java#L53 Can be fixed by easily adding a null check if(enchant == null) continue; however it would be nice to see the mod display the removed enchantments Identifier something like: Removed Enchantment: somemod:terror_ench