Sodium Extra

Sodium Extra

25M Downloads

Crash with sodium 0.4.0-alpha5+build.848

Titaniumtown opened this issue ยท 4 comments

commented

Make sure you are not opening a duplicate.

Minecraft version.

1.18.1

Sodium Extra version.

0.3.7

Sodium version.

0.4.0-alpha5+build.848

What happened?

Crashes when joining a server, this may be due to: CaffeineMC/sodium-fabric@c1f71f7 would be my best guess.

Relevant logs

https://paste.gg/p/anonymous/6c6ff937239e4709ac074cbe3f518a2a

Additional information

No response

commented

This happens because BiomeColorBlender class has been renamed to ColorBlender in the commit mentioned above CaffeineMC/sodium-fabric@c1f71f7

I was able to fix it by changing two lines in src/main/java/me/flashyreese/mods/sodiumextra/mixin/sodium/MixinBlockRenderer.java:

import me.jellysquid.mods.sodium.client.model.quad.blender.BiomeColorBlender;
change class import from BiomeColorBlender to ColorBlender
private void init(MinecraftClient client, LightPipelineProvider lighters, BiomeColorBlender biomeColorBlender, CallbackInfo ci) {
change parameter type from BiomeColorBlender to ColorBlender

I built this mod against the latest commit version of Sodium 1.18.x/dev and it doesn't crash anymore.

commented

Me Too

commented

I also have this problem and when I applied your fix I showed error in SodiumOptionsMenu.java(maybe) and also in game in pojavlauncher I cannot open options menu while sodium extra is installed.
(notenoughcrashes say its because of sodium,sodium-extras)

Can you share your fix?

commented

Now resolved with dd2c9d1