
Sodium incompatiblity with EMI
nonsensicalTrickster opened this issue · 7 comments
Bug Description
It seems that Sodium is having incompatibility issues with EMI where there previously were none.
I am using Prism Launcher
MC Ver 1.21.1
Fabric Loader 0.16.10
When launching the game with both EMI and Sodium installed, Sodium crashes before the game even boots. Once EMI is disabled, the game boots fine.
Reproduction Steps
Install Sodium and EMI for MC Ver 1.21.1 on fabric loader 0.16.10 and attempt to boot.
Log File
Crash Report
I can't create a crash report while replicating the bug as the game cannot boot while the issue is present. This is a crash report generated without EMI enabled to satisfy the requirement:
This is very likely not a bug in Sodium. Some other mod is loading classes too early and Mixins throws an error because it's not possible for Sodium to transform the class any longer.
Also, using your reproduction steps, the issue does not occur for me. Can you make sure it is specifically the interaction between Sodium and EMI?
I found it! It's an interaction between Sodium, EMI, and the More Variants Series! Given that removing EMI allows booting, there's something going on there.
Here's the modlist, it wasn't until I added the 'More x Variants' that it gave an error:
- Cloth Config v15
- EMI
- EMI Enchanting
- EMI Loot
- EMI Ores
- Fabric API
- Fabric Language Kotlin
- Fzzy Config
- Mod Menu
- More (Fishing) Rod Variants (MStV+)
- More (Item/Painting) Frame Variants (MStV+)
- More Armor Stand Variants (MStV+)
- More Barrel Variants
- More Bed Variants
- More Beehive Variants
- More Bookshelf Variants
- More Cartography Tables
- More Chest Variants
- More Chiseled Bookshelf Variants
- More Composter Variants
- More Crafter Variants
- More Crafting Tables
- More Fletching Tables
- More Furnace Variants
- More Grindstone Variants
- More Jukebox/Noteblock Variants
- More Lectern Variants
- More Loom Variants
- More Shield Variants
- More Slabs Stairs & Walls
- More Smithing Tables
- More Smoker Variants
- More Stick Variants (MStV)
- More Torch Variants (MStV+)
- More Weapon Variants (MStV+)
- Placeholder API
- Quad
- Sodium
- Sophisticated Backpacks
- Sophisticated Core
- Sophisticated Storage
- Stfu
- YetAnotherConfigLib
Using the mod list you provide, the same crash happens even if Sodium is not installed. This means it is not related to our mod.
Looking at it with a debugger, the problem is due to More Weapon Variants loading the ItemLike
(Mojmap) class too early. Their mixin plugin references a variable in the main class which then references the Item
(Mojmap) class.
This is illegal and will cause many mods to break like you are seeing. Please report it to their authors.
I opened an issue regarding the problem: pnk2u/More-Weapon-Variants#3
I'm really sorry about this issue.
But thanks to @jellysquid3, we were able to solve the problem and version 1.3.6, which has just been released, includes that fix.