Skip to content

Commit

Permalink
codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
Raycoms committed Sep 6, 2018
1 parent cdbb35b commit 4d317ed
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ private boolean isEntityAtSiteWithMove(@NotNull final BlockPos site, final int r
}

if (new AxisAlignedBB(entity.getPosition()).expand(1, 1, 1)
.intersects(new AxisAlignedBB(entity.getPosition())))
.intersects(new AxisAlignedBB(lastPos)))
{
stuckTime++;
}
Expand Down Expand Up @@ -187,6 +187,7 @@ private boolean isEntityAtSiteWithMove(@NotNull final BlockPos site, final int r
break;
default:
posToDestroy = entity.getPosition().up();
break;

}
world.destroyBlock(posToDestroy, true);
Expand Down

0 comments on commit 4d317ed

Please sign in to comment.