Fruit Trees ๐ŸŠ

Fruit Trees ๐ŸŠ

4M Downloads

Crash with MixinBootstrap

jburrows82 opened this issue ยท 9 comments

commented

Latest.log: https://hastebin.com/fepaliyihe.md
Crash.log: https://hastebin.com/fuzajogepu.cs

Mod launches fine without Mixins, but Dank Storage (2.4+) requires Mixins...

[mixin/]: Mixin apply failed assets/fruittrees/fruittrees.mixins.json:MixinServerWorld -> net.minecraft.world.server.ServerWorld: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException Critical injection failure: @Inject annotation on onLightningBolt could not find any targets matching 'addLightningBolt' in net.minecraft.world.server.ServerWorld. Using refmap main.refmap.json [PREINJECT Applicator Phase -> assets/fruittrees/fruittrees.mixins.json:MixinServerWorld -> Prepare Injections -> -> handler$zzg000$onLightningBolt(Lnet/minecraft/entity/effect/LightningBoltEntity;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V -> Parse] org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: Critical injection failure: @Inject annotation on onLightningBolt could not find any targets matching 'addLightningBolt' in net.minecraft.world.server.ServerWorld. Using refmap main.refmap.json [PREINJECT Applicator Phase -> assets/fruittrees/fruittrees.mixins.json:MixinServerWorld -> Prepare Injections -> -> handler$zzg000$onLightningBolt(Lnet/minecraft/entity/effect/LightningBoltEntity;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V -> Parse]

commented

Could you test with Kiwi, FruitTrees and MixinBootstrap only?

commented

No problem launching with just the three. If I add (only) Dank Storage, in addition to the three however, it crashes with the same OP error (injection onLightningBolt). So perhaps whatever Tfarcenim is doing with mixin is causing issues with your code injection?

commented

I have reproduced the conflict. Still do not know why

commented

Rename your refmap to mixins.fruittrees.refmap.json.

Dank-Storage and FruitTrees are using the same refmap name which in this case is causing FruitTrees refmap to get overwritten.

commented

We don't even touch the same classes, idk what's going on

commented

@LXGaming Hi I renamed refmap but it still targets to main.refmap.json. Do you know why?

commented

Sorry I have known why...

commented

It worked, thank you!

commented

@Tfarcenim I highly recommend that you also change your refmap name so it contains your mod id to prevent this same issue from happening in future.