Cardinal Components API

Cardinal Components API

28M Downloads

Mixin conflict with Fabric API

Syrenyx opened this issue ยท 0 comments

commented

Adding version 7.1.0-beta.1 of cardinal-components-base to the dependencies of a 1.21.8 Fabric mod causes the mixin transformation of net.minecraft.entity.LivingEntity to fail when attempting to launch the game client.
The specific Mixin in question is the LivingEntityMixin from fabric-entity-events-v1 which notably works correctly without CCA installed.

How to reproduce:

repositories {
    maven {
        name = "Ladysnake Mods"
        url = 'https://maven.ladysnake.org/releases'
    }
}
dependencies {
    modImplementation "org.ladysnake.cardinal-components-api:cardinal-components-base:7.1.0-beta.1"
}
  • Sync the Gradle Project
  • Execute the Minecraft Client run configuration

Following these steps should fail to launch the game with the following exceptions in :net.fabricmc.devlaunchinjector.Main.main():

  • java.lang.RuntimeException: Mixin transformation of net.minecraft.entity.LivingEntity failed
  • org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered
  • org.spongepowered.asm.mixin.injection.throwables.InjectionError: Critical injection failure: Callback method onEntityKilledOther(Lnet/minecraft/entity/Entity;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/damage/DamageSource;Lcom/llamalad7/mixinextras/injector/wrapoperation/Operation;)Z in fabric-entity-events-v1.mixins.json:LivingEntityMixin from mod fabric-entity-events-v1 failed injection check, (0/1) succeeded. Scanned 0 target(s). No refMap loaded.

minecraft_version = 1.21.8
yarn_mappings = 1.21.8+build.1
loader_version = 0.17.2
loom_version = 1.11-SNAPSHOT
fabric_version = 0.133.4+1.21.8
cca_version = 7.1.0-beta.1
java_version = 21