mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 20:52:34 +00:00
21 lines
1.0 KiB
Diff
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;
|
|
}
|