Sinytra / Connector

A compatibility layer that allows running Fabric mods on MinecraftForge
https://sinytra.org/docs/connector
MIT License
450 stars 17 forks source link

Connector cannot use with "RunData" in dev #1128

Closed joe-vettek closed 5 days ago

joe-vettek commented 2 weeks ago

Minecraft version

1.20.1

Describe the bug

Connector currently works with the development environment runclient, but I found it does not work with the rundata command. In fact, it does not load the Fabric module. Those items and blocks are not registered to the registry.

Steps to reproduce

  1. add in gradle file

    repositories {
    maven {
        url "https://www.cursemaven.com"
    }
    maven {
        name = "Sinytra"
        url = "https://maven.su5ed.dev/releases"
    }
    // Other repositories can go above or below Modrinth's. We don't need priority :)
    exclusiveContent {
        forRepository {
            maven {
                name = "Modrinth"
                url = "https://api.modrinth.com/maven"
            }
        }
        forRepositories(fg.repository) // Only add this if you're using ForgeGradle, otherwise remove this line
        filter {
            includeGroup "maven.modrinth"
        }
    }
    }
    dependencies {
    minecraft "net.minecraftforge:forge:${minecraft_min_version}-47.1.3"
    minecraftLibrary fg.deobf("dev.su5ed.sinytra:Connector:1.0.0-beta.43+1.20.1")
    
    runtimeOnly fg.deobf("curse.maven:terrablender-563928:5378180")
    runtimeOnly "maven.modrinth:natures-spirit:1.5.1-1.20.1"
    
    runtimeOnly fg.deobf("dev.su5ed.sinytra.fabric-api:fabric-api:0.92.0+1.11.5+1.20.1")
    }
  2. rundata
  3. check the registries when GatherDataEvent is fired

Logs

No response

Additional context

No response