lithium-fabric icon indicating copy to clipboard operation
lithium-fabric copied to clipboard

Seperate alloc.enum_values mixins

Open CalvinMT opened this issue 2 years ago • 4 comments

Is your feature request related to a problem? Please describe. In order to disable mixin/alloc/enum_values/RedstoneWireBlockMixin, I need to add "mixin.alloc.enum_values": false inside my mod's fabric.mod.json file. However, doing so also disables all other mixins in the same enum_values folder. Because of this, I find myself required to disable AI mixins (mixin.ai.task.launch and mixin.ai.task.replace_streams) which have nothing to do with my mod. Not disabling these AI mixins gives errors pointing towards mixin.ai.task.launch and mixin.ai.task.replace_streams.

Describe the solution you'd like Place each file in the mixin/alloc/enum_values folder into their own folder so that users can disable them individually.

CalvinMT avatar Mar 01 '23 11:03 CalvinMT

Your proposed solution is good, I will do that. Additionally the dependency of the ai.task mixins will be explicitly stated.

2No2Name avatar Mar 01 '23 11:03 2No2Name

Can you show the error message regarding mixin.ai.task...?

2No2Name avatar Mar 04 '23 23:03 2No2Name

I should have added it in my initial post, sorry. Here is a log file with the below lines added to the fabric.mod.json file: powerstones_lithium_ai_task_launch.log

"custom": {
    "lithium:options": {
        "mixin.alloc.enum_values": false,
        "mixin.block.redstone_wire": false
    }
}

These errors appeared after trying to load a single player world, right before entering the world. The errors disappear after adding mixin.ai.task.launch and mixin.ai.task.replace_streams.

Here is the list of mods I had installed when those errors showed up:

  • fabric-api-0.75.1+1.19.3
  • ferritecore-5.1.0-fabric
  • lithium-fabric-mc1.19.3-0.10.4
  • powerstones-2.0.0+1.19.3 (my mod)

CalvinMT avatar Mar 05 '23 00:03 CalvinMT

I think this might be related to ferritecore, not sure

2No2Name avatar Mar 15 '23 11:03 2No2Name