1.19+ compatibility