mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-28 16:06:48 +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
|
// involves block step sounds on contraptions
|
||||||
// IFNE line 661 injecting before `!blockstate.isAir(this.world, blockpos)`
|
// 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) {
|
private void create$contraptionStepSounds(MoverType mover, Vec3 movement, CallbackInfo ci) {
|
||||||
Vec3 worldPos = position.add(0, -0.2, 0);
|
Vec3 worldPos = position.add(0, -0.2, 0);
|
||||||
MutableBoolean stepped = new MutableBoolean(false);
|
MutableBoolean stepped = new MutableBoolean(false);
|
||||||
|
|
Loading…
Reference in a new issue