Resource Pack Overrides [Forge & Fabric]

Resource Pack Overrides [Forge & Fabric]

27M Downloads

[Bug]: Ordering doesn't work

Disketaa opened this issue ยท 2 comments

commented

Mod Loader (Required)

Fabric

Minecraft Version(s) (Required)

1.21.1

Mod Version(s) (Required)

21.1.0

Notes (Required)

For some reason, the resourcepacks in one group can't be ordered correctly.

"2": [
      "vanilla",
      "fabric",
      "minecraft:supporteatinganimation"
    ],

image

Fabric on top, Vanilla on bottom.
Is it related to options.txt choose resourcepack setting? Maybe ResourcepackOverride doesn't override this?

Here the full json:

{
  "schema_version": 2,
  "pack_overrides": {
    "1": [
      "programmer_art",
      "high_contrast",
      "a_good_place:default_animations",
      "file/A Good Place Sample Pack.zip",
      "elytratrims:legacy",
      "moonlight:mods_dynamic_assets"
    ],

    "2": [
      "vanilla",
      "fabric",
      "minecraft:supporteatinganimation"
    ],

    "3": [
      "Default",
      "Item Model Consistency"
    ],

    "$$1": {
      "hidden": true
    },

    "$$2": {
      "default_position": "bottom",
      "required": true,
      "hidden": false
    },

    "$$3": {
      "required": true
    }
  }
}

latest.log (Required)

https://mclo.gs/C1HbPHQ

commented

I am also experiencing the issue on my end. Every other function of the mod works perfectly.

This line might be the issue:
[12:16:34] [Render thread/ERROR]: Failed to read resourcepackoverrides.json in config directory: java.lang.IllegalArgumentException: Multiple entries with same key: vanilla=PackSelectionOverride[title=literal{Vanilla Assets}, description=literal{Vanilla recources from Minecraft}, defaultPosition=null, compatibility=null, fixedPosition=null, required=null, hidden=null] and vanilla=PackSelectionOverride[title=null, description=null, defaultPosition=null, compatibility=null, fixedPosition=null, required=true, hidden=true]

Here is my full log:
https://mclo.gs/lbESupn
And custom config:
https://pastes.io/resourcepackoverride-config

commented

Is it related to options.txt choose resourcepack setting? Maybe ResourcepackOverride doesn't override this?

I think this is the problem. It the file exists and already have the "resourcePacks" property saved, the mod is not overriding it.