From 0414692d82cb43fef291bf753b9457fd0ecdfe68 Mon Sep 17 00:00:00 2001 From: IThundxr Date: Thu, 2 May 2024 20:02:29 -0400 Subject: [PATCH] redo injector, shouldn't break between versions now --- .../mixin/client/EntityContraptionInteractionMixin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/simibubi/create/foundation/mixin/client/EntityContraptionInteractionMixin.java b/src/main/java/com/simibubi/create/foundation/mixin/client/EntityContraptionInteractionMixin.java index ebfa51636..4614a059c 100644 --- a/src/main/java/com/simibubi/create/foundation/mixin/client/EntityContraptionInteractionMixin.java +++ b/src/main/java/com/simibubi/create/foundation/mixin/client/EntityContraptionInteractionMixin.java @@ -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; });