Skip to content

@Inject stating I cannot mixin to the head of a class initializer #2506

@Jiingy

Description

@Jiingy

Minecraft Development for IntelliJ plugin version

2025.1-1.8.5-576

IntelliJ version

2025.1.4.1

Operating System

Win11

Target platform

Fabric

Description of the bug

I cannot inject into the HEAD of CropBlock, as it gives me the error "Cannot inject before super() call".
The game doesn't crash, and I can boot fine with the error.
Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions