ClassCastException crash with Starlight
mosharky opened this issue ยท 3 comments
Describe the Bug
Pondering any item crashes the client. I believe this is due to an incompatibility with Starlight:
Caused by: java.lang.ClassCastException: class com.jozufozu.flywheel.core.virtual.VirtualEmptyBlockGetter cannot be cast to class net.minecraft.class_1937 (com.jozufozu.flywheel.core.virtual.VirtualEmptyBlockGetter and net.minecraft.class_1937 are in unnamed module of loader net.fabricmc.loader.impl.launch.knot.KnotClassLoader @35f26e72)
at ca.spottedleaf.starlight.common.light.StarLightInterface.<init>(StarLightInterface.java:62)
at net.minecraft.world.chunk.light.LightingProvider.handler$fni000$construct(LightingProvider:60)
at net.minecraft.world.chunk.light.LightingProvider.<init>(LightingProvider:28)
at com.jozufozu.flywheel.core.virtual.VirtualEmptyBlockGetter$2.<init>(VirtualEmptyBlockGetter.java:38)
at com.jozufozu.flywheel.core.virtual.VirtualEmptyBlockGetter.<init>(VirtualEmptyBlockGetter.java:28)
at com.jozufozu.flywheel.core.virtual.VirtualEmptyBlockGetter.<clinit>(VirtualEmptyBlockGetter.java:26)
... 40 more
Would like to also mention that v0.4b isn't in the list of "Mod Versions", so I put 0.4.0a
Reproduction Steps
- Ponder Large Cogwheel
- Instant crash
Expected Result
To be able to ponder the item/block successfully w/o crashing
Screenshots and Videos
No response
Crash Report or Log
Operating System
Windows 10
Mod Version
0.4.0a
Minecraft Version
1.18.1
Other Mods
Starlight (and many other mods listed in the crash log)
Additional Context
No response
Create won't be compatible with Starlight unless and until Spottedleaf implements a fix for the ClassCastException issue you've run into here.
In the meantime, you can try downloading my forked version of Starlight, which implements the above-linked fix.