Skip to content

[1.16.5] Can't find the fabric/forge resource in the resource manager on compile only mode #322

@SAGESSE-CN

Description

@SAGESSE-CN

Issue 1

can't launch the fabric (client and server) project, it will throw duplicate fabric loader classes. logs

I force dependencies to the same version to solve this problem, but I hope it should be fixed.

configurations.configureEach {
    it.resolutionStrategy {
        it.force "net.fabricmc:fabric-loader:0.18.1"
    }
}

Issue 2

can't find the fabric/forge resource in the resource manager on compile only mode.

i add a test into MixinTitleScreen to reproduce issue. logs

and the problem also exists on the server side.

ResourceManager resourceManager = Minecraft.getInstance().getResourceManager();
resourceManager.getResource(new ResourceLocation("examplemod:common/a.json")); // should work in the :fabric:runClient and the :forge:runClient 
resourceManager.getResource(new ResourceLocation("examplemod:fabric/b.json")); // should work in the :fabric:runClient
resourceManager.getResource(new ResourceLocation("examplemod:forge/c.json")); // should work in the :forge:runClient 

Project

The test project from architectury templates.

1.16.5-forge-fabric-mixin.zip

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