Fourmisain / TaxFreeLevels

A Fabric/(Neo)Forge Minecraft mod which flattens the ever-increasing anvil and enchantment costs and makes renaming items always cost 1 level
MIT License
3 stars 3 forks source link

Compatibility with Zenith (Fabric Apotheosis port) #22

Closed TyoAtrosa closed 10 months ago

TyoAtrosa commented 10 months ago

trying to use this mod with Zenith gives the following error:

Minecraft has crashed! net.fabricmc.loader.impl.FormattedException: java.lang.ExceptionInInitializerError at net.fabricmc.loader.impl.FormattedException.ofLocalized(FormattedException.java:63) at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:472) at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:87) at org.prismlauncher.EntryPoint.listen(EntryPoint.java:130) at org.prismlauncher.EntryPoint.main(EntryPoint.java:70) Caused by: java.lang.ExceptionInInitializerError at net.minecraft.class_2358.method_10199(class_2358.java:326) at net.minecraft.class_2966.method_12851(class_2966.java:54) at net.minecraft.client.main.Main.main(Main.java:166) at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470) ... 5 more Caused by: java.lang.RuntimeException: Mixin transformation of net.minecraft.class_1706 failed at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:427) at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:323) at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:218) at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:119) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) at net.minecraft.class_2246.(class_2246.java:554) ... 9 more Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:392) at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:234) at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClassBytes(MixinTransformer.java:202) at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:422) ... 14 more Caused by: org.spongepowered.asm.mixin.throwables.MixinApplyError: Mixin [taxfreelevels-fabric.mixins.json:FlattenAnvilCostMixin from mod taxfreelevels] from phase [DEFAULT] in config [taxfreelevels-fabric.mixins.json] FAILED during APPLY at org.spongepowered.asm.mixin.transformer.MixinProcessor.handleMixinError(MixinProcessor.java:638) at org.spongepowered.asm.mixin.transformer.MixinProcessor.handleMixinApplyError(MixinProcessor.java:589) at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:379) ... 17 more Caused by: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: Specified index 0 for @ModifyArg is invalid for args (Lnet/minecraft/class_1657;I), expected I on net/minecraft/class_1706::taxfreelevels$flattenAnvilCost [INJECT Applicator Phase -> taxfreelevels-fabric.mixins.json:FlattenAnvilCostMixin from mod taxfreelevels -> Apply Injections -> -> Inject -> taxfreelevels-fabric.mixins.json:FlattenAnvilCostMixin from mod taxfreelevels->@ModifyArg::taxfreelevels$flattenAnvilCost(I)I] at org.spongepowered.asm.mixin.injection.invoke.ModifyArgInjector.findArgIndex(ModifyArgInjector.java:158) at org.spongepowered.asm.mixin.injection.invoke.ModifyArgInjector.injectAtInvoke(ModifyArgInjector.java:113) at org.spongepowered.asm.mixin.injection.invoke.InvokeInjector.inject(InvokeInjector.java:82) at org.spongepowered.asm.mixin.injection.invoke.ModifyArgInjector.inject(ModifyArgInjector.java:103) at org.spongepowered.asm.mixin.injection.code.Injector.inject(Injector.java:276) at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.inject(InjectionInfo.java:445) at org.spongepowered.asm.mixin.transformer.MixinTargetContext.applyInjections(MixinTargetContext.java:1377) at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyInjections(MixinApplicatorStandard.java:1062) at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin(MixinApplicatorStandard.java:402) at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:327) at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:421) at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:403) at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363) ... 17 more

Fourmisain commented 10 months ago

Oh, I didn't even know there was a Fabric port! Should hopefully be an easy fix since I already added compatibility with the Forge version yesterday.

Fourmisain commented 10 months ago

I was wondering for so long why it didn't work, turns out I was still in creative mode! đŸ˜…

1.3.8 is up!