Skip to content

Duplicate mod config with both OneConfig and Terraformers' Mod Menu support #663

@TomekoYT

Description

@TomekoYT

Original reporter & ticket id

No response

Category

Interface

Bug description

When a mod that uses OneConfig has a Terraformers' Mod Menu entrypoint:

import com.terraformersmc.modmenu.api.ConfigScreenFactory
import com.terraformersmc.modmenu.api.ModMenuApi
import net.minecraft.client.gui.screens.Screen
import org.polyfrost.oneconfig.utils.v1.dsl.createScreen

class ModMenuIntegration : ModMenuApi {
    override fun getModConfigScreenFactory(): ConfigScreenFactory<*> {
        return { _: Screen -> LegacySkyblockConfig.createScreen() }
    }
}

the mod shows twice in OneConfig's mod menu:

Image

Steps to reproduce

  1. Install a mod with both OneConfig and Terraformers' Mod Menu support
  2. Open OneConfig's mod menu

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions