Rebuilt sapling code to match rewrite of leaves code.