Skip to content

[Bug] Issue with Lithium #240

@RealLordzombieboy

Description

@RealLordzombieboy

What happened?

When Lithium and BetterEnd installed on a dedicated server, the following issue is produced in console constantly, halting all other processes for several minutes:

[main/WARN]: Lithium Class Analysis Error: Class org.betterx.bclib.blocks.BaseBlock cannot be analysed, because getting declared methods crashes with NoClassDefFoundError: net/minecraft/class_793. 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.

BCLib

3.0.14

WorldWeaver

0.0.0

Fabric API

0.92.6

Fabric Loader

0.18.2

Minecraft

1.20.1

Relevant log output

[main/WARN]: Lithium Class Analysis Error: Class org.betterx.bclib.blocks.BaseBlock cannot be analysed, because getting declared methods crashes with NoClassDefFoundError: net/minecraft/class_793. 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.

Other Mods

Lithium
Sodium
BetterEnd
Many others but these seem to be the most relevant ones.

Additional Comments

As WorldWeaver is not labeled as a dependency for BCLib or BetterEnd it is not installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions