Format source
This commit is contained in:
parent
4d8acdd76f
commit
01f6fb54e9
|
@ -17,8 +17,10 @@ public class MixinFarmlandBlock extends Block {
|
||||||
super(settings);
|
super(settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Inject(method = {"onLandedUpon(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;F)V"}, at = {@At("HEAD")}, cancellable = true)
|
@Inject(method = {"onLandedUpon(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;F)V"},
|
||||||
private void onLandedUpon(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance, CallbackInfo info) {
|
at = {@At("HEAD")}, cancellable = true)
|
||||||
|
private void onLandedUpon(World world, BlockState state, BlockPos pos, Entity entity,
|
||||||
|
float fallDistance, CallbackInfo info) {
|
||||||
super.onLandedUpon(world, state, pos, entity, fallDistance); // Don't cancel fall damage
|
super.onLandedUpon(world, state, pos, entity, fallDistance); // Don't cancel fall damage
|
||||||
info.cancel();
|
info.cancel();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue