Create: Steam 'n' Rails

Create: Steam 'n' Rails

20M Downloads

Radium/Lithium 1300 warnings

colemy opened this issue ยท 2 comments

commented

Describe the Bug

Dedicated servers spams this warning:

[19:29:51] [main/WARN] [Radium Class Analysis/]: Radium Class Analysis Error: Class com.railwayteam.railways.content.palettes.boiler.BoilerBlock cannot be analysed, because getting declared methods crashes with RuntimeException: Attempted to load class com/mojang/blaze3d/vertex/PoseStack for invalid dist DEDICATED_SERVER. This is usually caused by modded entities declaring methods that have a return type or parameter type that is annotated with @onlyin(Dist.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.

Reproduction Steps

  1. Install forge server version 1.20.1-47.2.20
  2. Install mod radium-mc1.20.1-0.12.3, and create-1.20.1-0.5.1.f, and Steam_Rails-1.6.1+forge-mc1.20.1
  3. Launch server

Expected Result

Not to get 1300+ lines of warnings

Screenshots and Videos

No response

Crash Report or Log

No response

Operating System

Windows 10

Mod Version

1.6.1

Create Mod Version

0.5.1f

Minecraft Version

1.20.1

ModLoader and Version

Forge 1.20.1-47.2.20

Other Mods

radium-mc1.20.1-0.12.3

Additional Context

No response

commented

I get the same errors.

[29May2024 12:21:00.941] [main/ERROR] [net.minecraftforge.fml.loading.RuntimeDistCleaner/DISTXFORM]: Attempted to load class com/mojang/blaze3d/vertex/PoseStack for invalid dist DEDICATED_SERVER
[29May2024 12:21:00.941] [main/WARN] [Radium Class Analysis/]: Radium Class Analysis Error: Class com.railwayteam.railways.content.custom_tracks.phantom.PhantomTrackBlock cannot be analysed, because getting declared methods crashes with RuntimeException: Attempted to load class com/mojang/blaze3d/vertex/PoseStack for invalid dist DEDICATED_SERVER. This is usually caused by modded entities declaring methods that have a return type or parameter type that is annotated with @OnlyIn(Dist.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.
[29May2024 12:21:00.942] [main/ERROR] [net.minecraftforge.fml.loading.RuntimeDistCleaner/DISTXFORM]: Attempted to load class com/mojang/blaze3d/vertex/PoseStack for invalid dist DEDICATED_SERVER
[29May2024 12:21:00.942] [main/WARN] [Radium Class Analysis/]: Radium Class Analysis Error: Class com.railwayteam.railways.content.custom_tracks.phantom.PhantomTrackBlock cannot be analysed, because getting declared methods crashes with RuntimeException: Attempted to load class com/mojang/blaze3d/vertex/PoseStack for invalid dist DEDICATED_SERVER. This is usually caused by modded entities declaring methods that have a return type or parameter type that is annotated with @OnlyIn(Dist.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.
[29May2024 12:21:00.985] [main/ERROR] [net.minecraftforge.fml.loading.RuntimeDistCleaner/DISTXFORM]: Attempted to load class com/mojang/blaze3d/vertex/PoseStack for invalid dist DEDICATED_SERVER
[29May2024 12:21:00.986] [main/WARN] [Radium Class Analysis/]: Radium Class Analysis Error: Class com.railwayteam.railways.content.custom_tracks.generic_crossing.GenericCrossingBlock cannot be analysed, because getting declared methods crashes with RuntimeException: Attempted to load class com/mojang/blaze3d/vertex/PoseStack for invalid dist DEDICATED_SERVER. This is usually caused by modded entities declaring methods that have a return type or parameter type that is annotated with @OnlyIn(Dist.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.
[29May2024 12:21:00.986] [main/ERROR] [net.minecraftforge.fml.loading.RuntimeDistCleaner/DISTXFORM]: Attempted to load class com/mojang/blaze3d/vertex/PoseStack for invalid dist DEDICATED_SERVER
[29May2024 12:21:00.986] [main/WARN] [Radium Class Analysis/]: Radium Class Analysis Error: Class com.railwayteam.railways.content.custom_tracks.generic_crossing.GenericCrossingBlock cannot be analysed, because getting declared methods crashes with RuntimeException: Attempted to load class com/mojang/blaze3d/vertex/PoseStack for invalid dist DEDICATED_SERVER. This is usually caused by modded entities declaring methods that have a return type or parameter type that is annotated with @OnlyIn(Dist.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.
[29May2024 12:21:00.992] [main/ERROR] [net.minecraftforge.fml.loading.RuntimeDistCleaner/DISTXFORM]: Attempted to load class com/mojang/blaze3d/vertex/PoseStack for invalid dist DEDICATED_SERVER
[29May2024 12:21:00.993] [main/WARN] [Radium Class Analysis/]: Radium Class Analysis Error: Class com.railwayteam.railways.content.palettes.boiler.BoilerBlock cannot be analysed, because getting declared methods crashes with RuntimeException: Attempted to load class com/mojang/blaze3d/vertex/PoseStack for invalid dist DEDICATED_SERVER. This is usually caused by modded entities declaring methods that have a return type or parameter type that is annotated with @OnlyIn(Dist.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.
[29May2024 12:21:00.993] [main/ERROR] [net.minecraftforge.fml.loading.RuntimeDistCleaner/DISTXFORM]: Attempted to load class com/mojang/blaze3d/vertex/PoseStack for invalid dist DEDICATED_SERVER
[29May2024 12:21:00.993] [main/WARN] [Radium Class Analysis/]: Radium Class Analysis Error: Class com.railwayteam.railways.content.palettes.boiler.BoilerBlock cannot be analysed, because getting declared methods crashes with RuntimeException: Attempted to load class com/mojang/blaze3d/vertex/PoseStack for invalid dist DEDICATED_SERVER. This is usually caused by modded entities declaring methods that have a return type or parameter type that is annotated with @OnlyIn(Dist.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.`
commented

can't reproduce with lithium, can reproduce with radium but even after adding the annotation it doesn't seem to ignore those methods, this should be reported to radium