mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-27 07:27:15 +01:00
redo injector, shouldn't break between versions now
This commit is contained in:
parent
d66170c8fe
commit
0414692d82
1 changed files with 2 additions and 2 deletions
|
@ -100,7 +100,7 @@ public abstract class EntityContraptionInteractionMixin extends CapabilityProvid
|
|||
|
||||
// involves block step sounds on contraptions
|
||||
// IFNE line 661 injecting before `!blockstate.isAir(this.world, blockpos)`
|
||||
@Inject(method = "move", at = @At(value = "JUMP", opcode = Opcodes.IFNE, ordinal = 7))
|
||||
@Inject(method = "move", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/level/block/state/BlockState;isAir()Z", ordinal = 0))
|
||||
private void create$contraptionStepSounds(MoverType mover, Vec3 movement, CallbackInfo ci) {
|
||||
Vec3 worldPos = position.add(0, -0.2, 0);
|
||||
MutableBoolean stepped = new MutableBoolean(false);
|
||||
|
@ -136,7 +136,7 @@ public abstract class EntityContraptionInteractionMixin extends CapabilityProvid
|
|||
|
||||
if (info == null)
|
||||
return false;
|
||||
|
||||
|
||||
cEntity.registerColliding(self);
|
||||
return true;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue