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.
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.