Locks-Unofficial

Locks-Unofficial

21.1k Downloads

Won't Build?

UdderlyEvelyn opened this issue ยท 7 comments

commented

I can't get it to build either on the command line with gradle directly or in IntelliJ.. well, it builds but because it won't obfuscate this one mixin it won't boot the game with the mod installed.

image

When running despite this it does this:

[18:05:02] [main/FATAL]: Mixin apply failed locks.mixins.json:WorldMixin -> net.minecraft.world.level.Level: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException Critical injection failure: @Inject annotation on strongCheck could not find any targets matching 'setBlock(Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;II)Z' in net.minecraft.world.level.Level. No refMap loaded. [PREINJECT Applicator Phase -> locks.mixins.json:WorldMixin -> Prepare Injections -> -> handler$gac000$strongCheck(Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;IILorg/spongepowered/asm/mixin/injection/callback/CallbackInfoReturnable;)V -> Parse] org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: Critical injection failure: @Inject annotation on strongCheck could not find any targets matching 'setBlock(Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;II)Z' in net.minecraft.world.level.Level. No refMap loaded. [PREINJECT Applicator Phase -> locks.mixins.json:WorldMixin -> Prepare Injections -> -> handler$gac000$strongCheck(Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;IILorg/spongepowered/asm/mixin/injection/callback/CallbackInfoReturnable;)V -> Parse]

commented

Locks are going to be slower to update lately, mainly because developers don't have much time and are planning to refactor locks

commented

Yes, this is due to the fact that the refmap name is not set when using arch gradle, which will cause the file name to be different from the setting, and the file name needs to be changed manually

commented

fix in this

commented

It doesn't seem to fix it? Is the refmap file maybe not in the repo?

commented

Yes, it is automatically generated after archloom builds the jar.

commented

Well the exact same build error happens even with this fix..
image

commented

Oh, this is a strange problem with archloom, rebuild in idea and then run the jar task, it disappears again, don't care