Skip to content

Commit 0414692

Browse files
committed
redo injector, shouldn't break between versions now
1 parent d66170c commit 0414692

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/simibubi/create/foundation/mixin/client/EntityContraptionInteractionMixin.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private void forCollision(Vec3 worldPos, TriConsumer<Contraption, BlockState, Bl
100100

101101
// involves block step sounds on contraptions
102102
// IFNE line 661 injecting before `!blockstate.isAir(this.world, blockpos)`
103-
@Inject(method = "move", at = @At(value = "JUMP", opcode = Opcodes.IFNE, ordinal = 7))
103+
@Inject(method = "move", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/level/block/state/BlockState;isAir()Z", ordinal = 0))
104104
private void create$contraptionStepSounds(MoverType mover, Vec3 movement, CallbackInfo ci) {
105105
Vec3 worldPos = position.add(0, -0.2, 0);
106106
MutableBoolean stepped = new MutableBoolean(false);
@@ -136,7 +136,7 @@ private void forCollision(Vec3 worldPos, TriConsumer<Contraption, BlockState, Bl
136136

137137
if (info == null)
138138
return false;
139-
139+
140140
cEntity.registerColliding(self);
141141
return true;
142142
});

0 commit comments

Comments
 (0)