Create

Create

86M Downloads

Create crashes when installed as a Gradle dependency

alex210-1 opened this issue ยท 3 comments

commented

Exception: [18:17:14] [main/FATAL] [mixin/]: Mixin apply failed create.mixins.json:EntityContraptionInteractionMixin -> net.minecraft.entity.Entity: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException Critical injection failure: @Inject annotation on movementMixin could not find any targets matching 'Lnet/minecraft/entity/Entity;func_213315_a(Lnet/minecraft/entity/MoverType;Lnet/minecraft/util/math/vector/Vector3d;)V' in net.minecraft.entity.Entity. Using refmap create.refmap.json [PREINJECT Applicator Phase -> create.mixins.json:EntityContraptionInteractionMixin -> Prepare Injections -> -> handler$zzi000$movementMixin(Lnet/minecraft/entity/MoverType;Lnet/minecraft/util/math/vector/Vector3d;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V -> Parse]

full crash log: https://pastebin.com/HCPBa1ii
build.gradle: https://pastebin.com/ZV1zt0PB

I am using

  • mappings channel: 'snapshot', version: '20200920-mixed-1.16.3'
  • minecraft 'net.minecraftforge:forge:1.16.5-36.1.0'
  • implementation fg.deobf("curse.maven:create-328085:3278516")
  • gradle 5.6.3
  • java 1.8.0_271

I have also tried different versions of all of them on windows and linux without success

The error appears to be specific to the create mod as it did not occur with any other mods I tried

commented

Ok, apparently this is because EntityContraptionInteractionMixin:89

@Inject(at = @At(value = "JUMP", opcode = 154, // IFNE line 587 injecting before `!blockstate.isAir(this.world, blockpos)`
	ordinal = 4), method = "move")
private void movementMixin(MoverType mover, Vector3d movement, CallbackInfo ci) {

uses a hardcoded jump address

commented

This is not an issue with that particular mixin. It is your dev environment knowing names with a mapping, but create being compiled to searge names (func_...) for the users environment. So you have to tell it it should remap that map of references to point to proper names again
You do that by enabeling the refmap remap property in your run configurations (something like SpongePowered/Mixin#462 (comment)) and, when starting from ide, regenerating that IDEs run cofiguration

commented

Thank you very much