Dark Utilities

Dark Utilities

122M Downloads

[QUESTION] hello, what does this console error mean? (lithium class analysis) darkutilities & botanypots

hiimrickross opened this issue ยท 1 comments

commented

Question

hellooo,

I use quite a few of your mods they are great little qol additions, but since I added them I notice a lot more of this lithium class analysis error spam as the world is loading in.

[17:51:06] [Server thread/WARN]: Lithium Class Analysis Error: Class net.darkhax.darkutilities.features.filters.BlockEntityFilter cannot be analysed, because getting declared methods crashes with NoClassDefFoundError: net/minecraft/class_1921. This is usually caused by modded entities declaring methods that have a return type or parameter type that is annotated with @Environment(value=EnvType.CLIENT). Loading the type is not possible, because it only exists in the CLIENT environment. The recommended fix is to annotate the method with this argument or return type with the same annotation. Lithium handles this error by assuming the class cannot be included in some optimizations.

[17:51:06] [Server thread/WARN]: Lithium Class Analysis Error: Class net.darkhax.botanypots.block.BlockBotanyPot cannot be analysed, because getting declared methods crashes with NoClassDefFoundError: net/minecraft/class_1921. This is usually caused by modded entities declaring methods that have a return type or parameter type that is annotated with @Environment(value=EnvType.CLIENT). Loading the type is not possible, because it only exists in the CLIENT environment. The recommended fix is to annotate the method with this argument or return type with the same annotation. Lithium handles this error by assuming the class cannot be included in some optimizations.

It is inconsequential I think, everything seems to work ok even the botany pots, but Im just wondering what happening since this kind of log does appear a few times on load but since adding this stuff it puts a LOT out on world load

thank you for your time

commented

Hello, the warning message from Lithium is a bit misleading but as you have already worked out, it is inconsequential. To explain a bit more, they're attempting to scan parts of my code to apply potential optimizations and are unable to. These mods are coded in such a way that their suggested fix is not applicable.