fix on 1.20

This commit is contained in:
IThundxr 2024-05-02 19:42:41 -04:00
parent 48e0e8f0ad
commit 2a532c6f34
No known key found for this signature in database
GPG key ID: E291EC97BAF935E6

View file

@ -100,7 +100,7 @@ public abstract class EntityContraptionInteractionMixin extends CapabilityProvid
// involves block step sounds on contraptions
// IFNE line 704 injecting before `!blockstate.isAir()`
@Inject(method = "move", at = @At(value = "JUMP", opcode = Opcodes.IFNE, ordinal = 6))
@Inject(method = "move", at = @At(value = "JUMP", opcode = Opcodes.IFNE, ordinal = 5))
private void create$contraptionStepSounds(MoverType mover, Vec3 movement, CallbackInfo ci) {
Vec3 worldPos = position.add(0, -0.2, 0);
MutableBoolean stepped = new MutableBoolean(false);