Environment:
Minecraft 1.20.1 | Forge 47.4.20 | Java 17.0.19
Valkyrien Skies 2: 2.4.11
Eureka: 1.6.3
Pehkui: 3.8.2+1.20.1-forge
Full mod list:
RPG-HUD 3.10.3,
GeckoLib 4.8.3,
JEI 15.20.0.130,
Kleiders Custom Renderer 7.4.1,
KotlinForForge 4.12.0,
MinePiece v14,
MixinExtras 0.4.1,
opworldlike 1.4.0,
Player Animator 1.0.2-rc1,
Cloth Config 11.1.106
Crash:
java.lang.ClassCastException: class net.minecraft.world.phys.Vec3 cannot be cast to class net.minecraft.core.BlockPos
at org.valkyrienskies.mod.common.VSGameUtilsKt.squaredDistanceBetweenInclShips(VSGameUtilsKt.java:152)
Crashes immediately on joining any world (singleplayer or multiplayer), at render time.
What makes this unusual:
Two friends plays on the exact same setup — identical mod jars (same filenames, same file sizes), same Forge version, same Java version, same JVM arguments — and does not crash. The crash happens 100% of the time on my machine and never on his.
Troubleshooting already done:
-Tried VS2 2.4.9, 2.4.10, 2.4.11 → all crash
-Tried Pehkui 3.8.0 and 3.8.2 → both crash
-Tried fresh world (deleted all world files) → still crashes
-Tried teleporting player away from any ships before joining → still crashes
-Replaced config folder with friend’s working config → still crashes
-Replaced mods folder with friend’s exact mods → still crashes
-Fixed Java from version 26 → Java 17 → still crashes
Crash occurs even on a brand new empty world with no ships
ss.png