Carpentry joints in earthquake conditions