Skip to content

Casting error #2

@Entropy159

Description

@Entropy159

class io.github.cottonmc.cotton.gui.client.CottonClientScreen cannot be cast to class io.github.cottonmc.cotton.gui.impl.mixin.client.ScreenAccessor (io.github.cottonmc.cotton.gui.client.CottonClientScreen and io.github.cottonmc.cotton.gui.impl.mixin.client.ScreenAccessor are in module libgui@0.1.1+11.1.0+1.21.1 of loader 'TRANSFORMER' @5e2f3be5)

I'm getting this error when I try and open a custom screen. It's caused by this line in CottonClientScreen:
((ScreenAccessor) this).libgui$getChildren().add(rootPanelElement);
I think this is caused because you need to explicitly add interface injectors for NeoForge, and this mod doesn't appear to do so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions