mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-14 22:44:07 +01:00
redo injector, shouldn't break between versions now
This commit is contained in:
parent
d66170c8fe
commit
0414692d82
@ -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);
|
||||||
@ -136,7 +136,7 @@ public abstract class EntityContraptionInteractionMixin extends CapabilityProvid
|
|||||||
|
|
||||||
if (info == null)
|
if (info == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
cEntity.registerColliding(self);
|
cEntity.registerColliding(self);
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user