Fix shulker bullets exploding immediatly (#2536)

This commit is contained in:
Andrew Mollenkamp 2019-09-21 22:48:50 -05:00 committed by Zach
parent e0532a7aa7
commit 26ec2f97e9

View file

@ -176,7 +176,7 @@ index 175f242a8..c21f9c65d 100644
- });
+ List<VoxelShape> shapes = new ArrayList<>();
+ for (Entity e : this.getEntities(entity, axisalignedbb.g(0.25D))) {
+ if (!set.contains(e) && (entity == null || !entity.x(e))) continue;
+ if (!(!set.contains(e) && (entity == null || !entity.x(e)))) continue;
+
+ List<AxisAlignedBB> alignedBBs = Arrays.asList(e.al(), entity == null ? null : entity.j(e));
+ for (AxisAlignedBB axisAlignedBB : alignedBBs) {