Skip to content

[1.3.0] Mod conflict with Petrolpark's Library – CreateLang loaded too early (MixinTargetAlreadyLoadedException) #32

@AOAwhat

Description

@AOAwhat

Describe the bug
Updating Create: Escalated to version 1.3.0 (MC 1.21.1, NeoForge) causes a startup crash when Petrolpark's Library is also installed.
The crash occurs during Mixin preparation: CreateLang is loaded too early, which prevents Petrolpark from injecting its own Mixin into CreateLang.

Steps to reproduce

1.Use Minecraft 1.21.1 with NeoForge (21.1.228) and Create 6.0.10.

2.Add Petrolpark's Library 1.4.32 (and its dependency Flywheel) to the mods folder.

3.Add Create: Escalated 1.3.0 to the mods folder.

4.Launch the game.

5.The game crashes during early initialization (before the main menu).

Crash log / Mixin error

Mixin prepare for mod petrolpark failed preparing compat.create.client.CreateLangMixin in petrolpark.mixins.json:
org.spongepowered.asm.mixin.transformer.throwables.MixinTargetAlreadyLoadedException
Critical problem: petrolpark.mixins.json:compat.create.client.CreateLangMixin from mod petrolpark target
com.simibubi.create.foundation.utility.CreateLang was loaded too early.

Full log excerpt:

[main/FATAL]: Mixin prepare for mod petrolpark failed preparing compat.create.client.CreateLangMixin...
...
Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinTargetAlreadyLoadedException: Critical problem:
petrolpark.mixins.json:compat.create.client.CreateLangMixin from mod petrolpark target
com.simibubi.create.foundation.utility.CreateLang was loaded too early.
at ...MixinInfo.readDeclaredTargets(MixinInfo.java:947) ~[...]
at ...MixinInfo.(MixinInfo.java:881) ~[...]
...
Preliminary analysis
Removing Create: Escalated (or downgrading it) resolves the crash.
The issue seems to be that Escalated 1.3.0 (likely during its own Mixin or class initialization) indirectly references com.simibubi.create.foundation.utility.CreateLang too early in the game loading process.
This causes the JVM to lock the class before Petrolpark's Mixin can apply, resulting in a MixinTargetAlreadyLoadedException.
The crash does not occur with earlier versions of Create: Escalated (please check if 1.2.x worked).

Environment (required)

Minecraft version: 1.21.1

Mod loader: NeoForge 21.1.228

Create version: 6.0.10

Escalated version: 1.3.0

Petrolpark's Library version: 1.4.32

Other relevant mods: Petrol's Parts 1.2.10 (optional, also present but not required to trigger)

Additional context
This crash was reproduced on a large modpack, but the minimal set to trigger the crash is Create + Escalated + Petrolpark’s Library.
Other Create addons do not seem to cause the same issue.
If you need a full log, I can provide it on request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions