nea89o / jarvis

GNU Lesser General Public License v3.0
4 stars 1 forks source link

Crashing in 1.21 #3

Open nshjck opened 3 months ago

nshjck commented 3 months ago

After depending on jarvis in my build.gradle, whilst compiling the mod works correctly attempting to run the game gives the following error: java.lang.RuntimeException: Mixin transformation of net.minecraft.item.SwordItem failed org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered org.spongepowered.asm.mixin.throwables.MixinApplyError: Mixin [fabric-mining-level-api-v1.mixins.json:SwordItemMixin from mod fabric-mining-level-api-v1] from phase [DEFAULT] in config [fabric-mining-level-api-v1.mixins.json] FAILED during APPLY org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: Critical injection failure: @Inject annotation on fabric$onIsSuitableFor could not find any targets matching 'Lnet/minecraft/item/SwordItem;method_7856(Lnet/minecraft/block/BlockState;)Z' in net.minecraft.item.SwordItem. Using refmap fabric-mining-level-api-v1-refmap.json [PREINJECT Applicator Phase -> fabric-mining-level-api-v1.mixins.json:SwordItemMixin from mod fabric-mining-level-api-v1 -> Prepare Injections -> -> handler$zcd001$fabric-mining-level-api-v1$fabric$onIsSuitableFor(Lnet/minecraft/block/BlockState;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfoReturnable;)V -> Parse] image

nea89o commented 3 months ago

I suppose this is an error because i still depend on an old fabric version. In practice this wasnt a problem for me since most people also depend on fabric themselves, therefore just not using the transitive dependency that i am. Just adding your own fabric api dependency should fix it for now, but i probably should clean this whole thing up a bit

nshjck commented 3 months ago

I'll give that a go and see if it sorts it, I'd love to see this updated as it's by far the easiest way to do simple GUI's that i've seen