Crash with MixinBootstrap
jburrows82 opened this issue ยท 9 comments
- Forge Version: 30.0.41
- Mod Version: 1.1.2
- MixinBootstrap: 1.0.1 (https://github.com/LXGaming/MixinBootstrap/releases)
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]
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?
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.
@LXGaming Hi I renamed refmap but it still targets to main.refmap.json
. Do you know why?
@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.