moveDx = handle.locX - oldLocX;
moveDy = handle.locY - oldLocY;
moveDz = handle.locZ - oldLocZ;
if (entity.getEntity() instanceof Vehicle && entity.isMovementImpaired()) {
Vehicle vehicle = (Vehicle) entity.getEntity();
org.bukkit.block.Block block = entity.getWorld().getBlockAt(entity.loc.x.block(), MathUtil.floor(handle.locY - (double) handle.height), entity.loc.z.block());
if (oldDx > dx) {
block = block.getRelative(BlockFace.EAST);
} else if (oldDx < dx) {
block = block.getRelative(BlockFace.WEST);