Files
MinecraftForge/patches/minecraft/net/minecraft/entity/projectile/AbstractArrowEntity.java.patch
T

21 lines
1.0 KiB
Diff

--- a/net/minecraft/entity/projectile/AbstractArrowEntity.java
+++ b/net/minecraft/entity/projectile/AbstractArrowEntity.java
@@ -161,7 +161,7 @@
BlockPos blockpos = new BlockPos(this.field_70165_t, this.field_70163_u, this.field_70161_v);
BlockState blockstate = this.field_70170_p.func_180495_p(blockpos);
- if (!blockstate.func_196958_f() && !flag) {
+ if (!blockstate.isAir(this.field_70170_p, blockpos) && !flag) {
VoxelShape voxelshape = blockstate.func_196952_d(this.field_70170_p, blockpos);
if (!voxelshape.func_197766_b()) {
for(AxisAlignedBB axisalignedbb : voxelshape.func_197756_d()) {
@@ -217,7 +217,7 @@
}
}
- if (raytraceresult != null && !flag) {
+ if (raytraceresult != null && raytraceresult.func_216346_c() != RayTraceResult.Type.MISS && !flag && !net.minecraftforge.event.ForgeEventFactory.onProjectileImpact(this, raytraceresult)) {
this.func_184549_a(raytraceresult);
this.field_70160_al = true;
}