XP Storage

XP Storage

4M Downloads

Crash with Gravity API [1.19]

Kubimate opened this issue ยท 3 comments

commented

Crash at startup when Gravity API is present

Mixin apply for mod xp_storage failed xpstorage.mixins.json:XpBottleItemMixin from mod xp_storage -> net.minecraft.class_1779: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException @At("INVOKE") on net/minecraft/class_1779::setXpAmountEntity with priority 1000 cannot inject into net/minecraft/class_1779::method_7836(Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1271; merged by com.fusionflux.gravity_api.mixin.ExperienceBottleItemMixin with priority 1000 [PREINJECT Applicator Phase -> xpstorage.mixins.json:XpBottleItemMixin from mod xp_storage -> Prepare Injections -> -> localvar$zmn000$setXpAmountEntity(Lnet/minecraft/class_1683;Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1683; -> Prepare]

latest.log

commented

Hello, thanks for the report!
I checked the mod and actually, the issue doesn't come from my mod. The problem is that the API is overriding a function that already existed in Minecraft code while I was injecting code into it. I will tell Gravity API's maintainer to use a better way for this change so that it won't crash when playing with both mods. I will keep you updated if I get news from them ;)

commented

According to the other mod author, the issue is now fixed!

commented

Thanks!