When using Show Off with an enchanted book, holding shift to show the tooltip icons (or having them set to always draw) will crash the game on mouse-over.
This comes back to the general issue of enchantedItemStack not always being set and cachedTooltipIcons will return null, thus producing a NPE.
Since this general issue is hard to fix, I retorted to the simple fix of skipping the whole method.
I should also say that since cachedTooltipIcons is a WeakHashMap, getcan always return null, so this might fix some crashes in low memory situations as well.
When using Show Off with an enchanted book, holding shift to show the tooltip icons (or having them set to always draw) will crash the game on mouse-over.
This comes back to the general issue of
enchantedItemStack
not always being set andcachedTooltipIcons
will returnnull
, thus producing a NPE. Since this general issue is hard to fix, I retorted to the simple fix of skipping the whole method.I should also say that since
cachedTooltipIcons
is aWeakHashMap
,get
can always returnnull
, so this might fix some crashes in low memory situations as well.